Browse Source

修改分期扣款(每月20号执行)队列,时间限制为3点到18点
执行间隔为10秒

lcl 1 year ago
parent
commit
13ff5f3b28
1 changed files with 2 additions and 2 deletions
  1. 2 2
      AppStart/Helper/InstallmentDeductionService.cs

+ 2 - 2
AppStart/Helper/InstallmentDeductionService.cs

@@ -28,7 +28,7 @@ namespace MySystem
         {
             while (true)
             {
-                if (DateTime.Now.Day == 20 && DateTime.Now.Hour < 12)
+                if (DateTime.Now.Day == 20 && DateTime.Now.Hour > 2 && DateTime.Now.Hour < 19)
                 {
                     try
                     {
@@ -116,7 +116,7 @@ namespace MySystem
                         function.WriteLog(DateTime.Now.ToString() + ":" + ex.ToString(), "执行分期扣费异常");
                     }
                 }
-                Thread.Sleep(1000);
+                Thread.Sleep(10000);
             }
         }
     }