Sfoglia il codice sorgente

添加生产环境执行

DuGuYang 2 anni fa
parent
commit
5a9cc05e93
1 ha cambiato i file con 18 aggiunte e 15 eliminazioni
  1. 18 15
      Startup.cs

+ 18 - 15
Startup.cs

@@ -139,22 +139,25 @@ namespace MySystem
             initSpServer();
             initOperateServer();
 
-            // if(Env == "Develop")
-            // {
-            // }
-            // if(Env == "Production")
-            // {
-            //     ResetUserTradeService.Instance.Start();
-            //     ResetMerchantTradeService.Instance.Start();
-            //     SycnProfitServiceV3.Instance.Start();
-            //     SycnHelpProfitService.Instance.Start();
-            //     ExcelHelper.Instance.Start();
-            //     OpExcelHelper.Instance.Start();
-            //     SycnUserMachineCountHelper.Instance.Start(); //重置创客机具数量
+            if (Env == "Develop")
+            {
+            }
+            if (Env == "Production")
+            {
+                ResetUserTradeService.Instance.Start();
+                ResetMerchantTradeService.Instance.Start();
+                SycnProfitServiceV3.Instance.Start();
+                SycnHelpProfitService.Instance.Start();
+                ExcelHelper.Instance.Start();
+                OpExcelHelper.Instance.Start();
+                SycnUserMachineCountHelper.Instance.Start(); //重置创客机具数量
+
+                TestHelper.Instance.Start(); //生成兑换券
 
-            //     TestHelper.Instance.Start(); //生成兑换券
-            // }
-            BatchEditUserAmountService.Instance.Start(); //创客信息相关数据导入
+                BatchEditUserAmountService.Instance.Start(); //创客信息相关数据导入
+                StoreHouseWithdrawalResultsService.Instance.Start(); //分仓临额提现结果导入
+                PreWithdrawalResultsService.Instance.Start(); //小分仓临额提现结果导入
+            }
         }