lichunlei 2 ani în urmă
părinte
comite
0e424e28d3

+ 4 - 4
AppStart/Helper/Profit/ProfitCheckHelper.cs

@@ -18,10 +18,10 @@ namespace MySystem
         {
             try
             {
-                function.WriteLog("导出分润:" + DateTime.Now.ToString(), "分润结果检查");
-                ExportProfitData(); //导出分润
-                function.WriteLog("导出补贴:" + DateTime.Now.ToString(), "分润结果检查");
-                ExportSubsidyData(); //导出补贴
+                // function.WriteLog("导出分润:" + DateTime.Now.ToString(), "分润结果检查");
+                // ExportProfitData(); //导出分润
+                // function.WriteLog("导出补贴:" + DateTime.Now.ToString(), "分润结果检查");
+                // ExportSubsidyData(); //导出补贴
                 function.WriteLog("检查分润:" + DateTime.Now.ToString(), "分润结果检查");
                 CheckProfit(); //检查分润
                 function.WriteLog("检查补贴:" + DateTime.Now.ToString(), "分润结果检查");

+ 6 - 6
AppStart/Helper/StatService.cs

@@ -309,10 +309,6 @@ namespace MySystem
                             {
                                 doActiveReward(db, merchant, pos, GetUserId, ParentNav, TopUserId, 50);
                             }
-                            else
-                            {
-                                doJk30(db, pos, merchant, GetUserId, ParentNav, TopUserId);
-                            }
                         }
                     }
                     // }
@@ -378,6 +374,10 @@ namespace MySystem
                         {
                             doActiveReward(db, merchant, pos, GetUserId, ParentNav, TopUserId, 50);
                         }
+                        else
+                        {
+                            doJk30(db, pos, merchant, GetUserId, ParentNav, TopUserId);
+                        }
                     }
                 }
             }
@@ -1736,7 +1736,7 @@ namespace MySystem
         {
             while (true)
             {
-                if(DateTime.Now.Day == 2 && DateTime.Now.Hour > 4)
+                if(DateTime.Now.Day == 3 && DateTime.Now.Hour > 4)
                 {
                     // string Month = DateTime.Now.AddDays(-1).ToString("yyyy-MM");
                     // string flag = function.ReadInstance("/ProfitFlag/" + Month + ".txt");
@@ -1745,7 +1745,7 @@ namespace MySystem
                     //     function.WritePage("/ProfitFlag/", Month + ".txt", DateTime.Now.ToString("HH:mm:ss"));
                     //     StatUserLevelStart();
                     // }
-                    ProfitHelperV2.Instance.StatProfit();
+                    ProfitCheckHelper.Instance.Start();
                 }
                 Thread.Sleep(600000);
             }

+ 8 - 0
Controllers/HomeController.cs

@@ -156,6 +156,14 @@ namespace MySystem.Controllers
             }
             return "ok";
         }
+        public string chkactprize2(int Id = 0)
+        {
+            if (Id > 0)
+            {
+                StatService.Instance.activePrizeWithoutDeposit(Id);
+            }
+            return "ok";
+        }
 
         public string mutilactprize()
         {