|
@@ -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(); //返现队列-微信
|
|
|
- // TestHaoDaService.Instance.Start(); //好哒测试
|
|
|
+ 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(); //返现队列-微信
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//初始化数据结构
|