Pārlūkot izejas kodu

执行存量和新增分润

lcl 1 gadu atpakaļ
vecāks
revīzija
68b32d8294

+ 2 - 2
AppStart/Helper/Profit/ProfitAfterHelper.cs

@@ -51,12 +51,12 @@ namespace MySystem
         public void StatProfiting()
         {
             string Month = DateTime.Now.AddMonths(-1).ToString("yyyyMM");
-            string check = function.ReadInstance("/ProfitStat/" + Month + "-1.txt");
+            string check = function.ReadInstance("/ProfitStat/" + Month + "-1-after.txt");
             if (!string.IsNullOrEmpty(check))
             {
                 return;
             }
-            function.WritePage("/ProfitStat/", Month + "-1.txt", DateTime.Now.ToString());
+            function.WritePage("/ProfitStat/", Month + "-1-after.txt", DateTime.Now.ToString());
             try
             {
                 WebCMSEntities db = new WebCMSEntities();

+ 2 - 2
AppStart/Helper/Profit/ProfitBeforeHelper.cs

@@ -51,12 +51,12 @@ namespace MySystem
         public void StatProfiting()
         {
             string Month = DateTime.Now.AddMonths(-1).ToString("yyyyMM");
-            string check = function.ReadInstance("/ProfitStat/" + Month + "-1.txt");
+            string check = function.ReadInstance("/ProfitStat/" + Month + "-1-before.txt");
             if (!string.IsNullOrEmpty(check))
             {
                 return;
             }
-            function.WritePage("/ProfitStat/", Month + "-1.txt", DateTime.Now.ToString());
+            function.WritePage("/ProfitStat/", Month + "-1-before.txt", DateTime.Now.ToString());
             try
             {
                 WebCMSEntities db = new WebCMSEntities();

+ 3 - 1
AppStart/Helper/Profit/ProfitHelperV2.cs

@@ -40,7 +40,9 @@ namespace MySystem
                 string content = RedisDbconn.Instance.RPop<string>("DoProfitQueue");
                 if(!string.IsNullOrEmpty(content) && DateTime.Now.Day < 14)
                 {
-                    StatProfiting();
+                    // StatProfiting();
+                    ProfitBeforeHelper.Instance.StatProfiting();
+                    ProfitAfterHelper.Instance.StatProfiting();
                 }
                 else
                 {