|
@@ -135,19 +135,25 @@ namespace MySystem
|
|
|
});
|
|
|
|
|
|
initMainServer();
|
|
|
- MerchantConfirmService.Instance.Start();
|
|
|
- CheckWeChatSignService.Instance.Start();
|
|
|
- ProfitShareService.Instance.Start();
|
|
|
- HaoDaExtHelper.Instance.StartWeChat();
|
|
|
- HaoDaExtHelper.Instance.StartAlipay();
|
|
|
- HaoDaExtQueryHelper.Instance.StartWeChat();
|
|
|
- HaoDaExtQueryHelper.Instance.StartAlipay();
|
|
|
- HaoDaAuthQueryHelper.Instance.Start();
|
|
|
- WeChatPayBackService.Instance.Start();
|
|
|
- WeChatPayBackService.Instance.StartProfitShare();
|
|
|
- ProfitHelper.Instance.StartListenTrade();
|
|
|
- ProfitHelper.Instance.StartListenWxTrade();
|
|
|
-
|
|
|
+ if(Library.ConfigurationManager.EnvironmentFlag == 1)
|
|
|
+ {
|
|
|
+ TestHaoDaService.Instance.Start();
|
|
|
+ }
|
|
|
+ if(Library.ConfigurationManager.EnvironmentFlag == 2)
|
|
|
+ {
|
|
|
+ MerchantConfirmService.Instance.Start();
|
|
|
+ CheckWeChatSignService.Instance.Start();
|
|
|
+ ProfitShareService.Instance.Start();
|
|
|
+ HaoDaExtHelper.Instance.StartWeChat();
|
|
|
+ HaoDaExtHelper.Instance.StartAlipay();
|
|
|
+ HaoDaExtQueryHelper.Instance.StartWeChat();
|
|
|
+ HaoDaExtQueryHelper.Instance.StartAlipay();
|
|
|
+ HaoDaAuthQueryHelper.Instance.Start();
|
|
|
+ WeChatPayBackService.Instance.Start();
|
|
|
+ WeChatPayBackService.Instance.StartProfitShare();
|
|
|
+ ProfitHelper.Instance.StartListenTrade();
|
|
|
+ ProfitHelper.Instance.StartListenWxTrade();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|