فهرست منبع

修复激活机具返运营中心额度问题

lcl 1 سال پیش
والد
کامیت
4f527e43ab
3فایلهای تغییر یافته به همراه53 افزوده شده و 53 حذف شده
  1. 4 4
      AppStart/Helper/LeaderCompPrizeHelper.cs
  2. 1 1
      AppStart/Helper/SycnSpServer/SycnSpTradeService.cs
  3. 48 48
      Startup.cs

+ 4 - 4
AppStart/Helper/LeaderCompPrizeHelper.cs

@@ -27,7 +27,7 @@ namespace MySystem
         {
             while(true)
             {
-                if(DateTime.Now.Hour > 0 && DateTime.Now.Hour < 3)
+                if(DateTime.Now.Hour > 0 && DateTime.Now.Hour < 23)
                 {
                     if(DateTime.Now.Day == 1)
                     {
@@ -58,15 +58,15 @@ namespace MySystem
                 string month = now.ToString("yyyyMM");
                 string checkMonth = Start.ToString("yyyyMM");
                 doSomething(month, checkMonth);
-                now = now.AddMonths(-1);
+                Start = Start.AddMonths(1);
             }
-            now = DateTime.Parse(curMonth + "-01 00:00:00");
+            Start = DateTime.Parse("2023-06-01 00:00:00");
             while(now > Start)
             {
                 string month = now.ToString("yyyyMM");
                 string checkMonth = Start.ToString("yyyyMM");
                 SendPrize(month, checkMonth);
-                now = now.AddMonths(-1);
+                Start = Start.AddMonths(1);
             }
         }
 

+ 1 - 1
AppStart/Helper/SycnSpServer/SycnSpTradeService.cs

@@ -365,8 +365,8 @@ namespace MySystem
                                             if(pos.IsFirst == 1)
                                             {
                                                 RedisDbconn.Instance.AddList("OperatePrizeQueue", pos.Id);
-                                                AlipayPayBack2Service.Instance.ActReserveBack(pos.OpId, pos.OpReserve1, pos.OpReserve2, pos.OpReserve3);
                                             }
+                                            AlipayPayBack2Service.Instance.ActReserveBack(pos.OpId, pos.OpReserve1, pos.OpReserve2, pos.OpReserve3);
                                         }
                                         if (TradeAmount > 0)
                                         {

+ 48 - 48
Startup.cs

@@ -179,60 +179,60 @@ namespace MySystem
             });
 
             //必须打开的
-            SycnSpBindService.Instance.Start(); //同步SP绑定数据
-            SycnSpMerchantService.Instance.Start(); //同步SP商户数据
-            SycnSpActiveService.Instance.Start(); //同步SP激活数据
-            SycnSpTradeService.Instance.Start(); //同步SP交易数据
-            SycnSpChangeBindService.Instance.Start(); //同步SP换绑数据
-            SycnSpUnBindService.Instance.Start(); //同步SP解绑数据
-            SycnSpMerchantRecordService.Instance.Start(); //同步SP商户记录数据
+            // SycnSpBindService.Instance.Start(); //同步SP绑定数据
+            // SycnSpMerchantService.Instance.Start(); //同步SP商户数据
+            // SycnSpActiveService.Instance.Start(); //同步SP激活数据
+            // SycnSpTradeService.Instance.Start(); //同步SP交易数据
+            // SycnSpChangeBindService.Instance.Start(); //同步SP换绑数据
+            // SycnSpUnBindService.Instance.Start(); //同步SP解绑数据
+            // SycnSpMerchantRecordService.Instance.Start(); //同步SP商户记录数据
 
-            StatService.Instance.StartActiveReward(); //实时处理激活奖励
-            StatService.Instance.StartActiveReward1(); //实时处理0押激活奖励
-            StatService.Instance.StartActiveReward2(); //实时处理盒易付0押激活奖励
-            StatService.Instance.StartOpenReward(); //实时获取开机奖励
-            StatService.Instance.ListenFluxRecord(); //实时获取流量费分佣
-            LeaderPrizeService.Instance.Start(); //大盟主奖励发奖
-            OperatePrizeService.Instance.Start(); //运营中心奖励发奖
-            StatService.Instance.StatUserLevel(); //升级
-            ProfitHelperV2.Instance.StatProfit(); //创客分润
-            RedPackageV2Helper.Instance.Start(); //每天生成红包
-            RedPackageV2Helper.Instance.StartStatTop10(); //红包活动统计排行
-            RedPackageV2Helper.Instance.StartSendPrize(); //红包活动发奖
-            ActRewardService.Instance.Start(); //发放激活奖励
-            HelpProfitPreMerchantHelper.Instance.Start(); //助利宝每天增加指定数量商机
+            // StatService.Instance.StartActiveReward(); //实时处理激活奖励
+            // StatService.Instance.StartActiveReward1(); //实时处理0押激活奖励
+            // StatService.Instance.StartActiveReward2(); //实时处理盒易付0押激活奖励
+            // StatService.Instance.StartOpenReward(); //实时获取开机奖励
+            // StatService.Instance.ListenFluxRecord(); //实时获取流量费分佣
+            // LeaderPrizeService.Instance.Start(); //大盟主奖励发奖
+            // OperatePrizeService.Instance.Start(); //运营中心奖励发奖
+            // StatService.Instance.StatUserLevel(); //升级
+            // ProfitHelperV2.Instance.StatProfit(); //创客分润
+            // RedPackageV2Helper.Instance.Start(); //每天生成红包
+            // RedPackageV2Helper.Instance.StartStatTop10(); //红包活动统计排行
+            // RedPackageV2Helper.Instance.StartSendPrize(); //红包活动发奖
+            // ActRewardService.Instance.Start(); //发放激活奖励
+            // HelpProfitPreMerchantHelper.Instance.Start(); //助利宝每天增加指定数量商机
             LeaderCompPrizeHelper.Instance.Start(); //每天计算领导人达标奖
 
-            MessageCenterService.Instance.Start(); // 消息队列
-            SetFeeFlagService.Instance.Start(); //118天提前通知创客费率调升消息
-            LeaderTimeoutSendMessageService.Instance.Start(); //盟主过期消息提醒
-            SetDepositService.Instance.Start(); //调整费率(通知、标记)
+            // MessageCenterService.Instance.Start(); // 消息队列
+            // SetFeeFlagService.Instance.Start(); //118天提前通知创客费率调升消息
+            // LeaderTimeoutSendMessageService.Instance.Start(); //盟主过期消息提醒
+            // SetDepositService.Instance.Start(); //调整费率(通知、标记)
 
-            AlipayPayBack2Service.Instance.Start(); //支付宝回调处理
-            BalancePayBackService.Instance.Start(); //余额支付队列
-            ReservePayBackService.Instance.Start(); //储备金支付队列
-            OrderRefundService.Instance.Start(); //商城订单退款
+            // AlipayPayBack2Service.Instance.Start(); //支付宝回调处理
+            // BalancePayBackService.Instance.Start(); //余额支付队列
+            // ReservePayBackService.Instance.Start(); //储备金支付队列
+            // OrderRefundService.Instance.Start(); //商城订单退款
 
-            StatService.Instance.Start(); //每日重置交易额
-            StoreApplyHelper.Instance.Start(); // 每月1号重置仓库额度
-            DepositReturnStatService.Instance.Start(); //每月1号统计达标商户(退押需要的)
-            AutoOpOrderService.Instance.StartOrderCancel(); //自动取消超时订单(15分钟)
-            OperateStockService.Instance.Start(); //运营中心库存实时更新
-            ResetSmallStoreHelper.Instance.Start(); //每月重置小分仓额度
-            OperateService.Instance.Start(); //运营中心每天统计一次发货量、库存
-            TimeOutPosChargeService.Instance.StartDoChargeAmount(); //实时监听待扣款记录,并扣费
-            InstallmentDeductionService.Instance.Start(); //分期扣款(每月20号执行)
+            // StatService.Instance.Start(); //每日重置交易额
+            // StoreApplyHelper.Instance.Start(); // 每月1号重置仓库额度
+            // DepositReturnStatService.Instance.Start(); //每月1号统计达标商户(退押需要的)
+            // AutoOpOrderService.Instance.StartOrderCancel(); //自动取消超时订单(15分钟)
+            // OperateStockService.Instance.Start(); //运营中心库存实时更新
+            // ResetSmallStoreHelper.Instance.Start(); //每月重置小分仓额度
+            // OperateService.Instance.Start(); //运营中心每天统计一次发货量、库存
+            // TimeOutPosChargeService.Instance.StartDoChargeAmount(); //实时监听待扣款记录,并扣费
+            // InstallmentDeductionService.Instance.Start(); //分期扣款(每月20号执行)
 
-            ChangePosTimer.Instance.Start(); //售后换新执行机具数据转移
-            RecommendActStatService.Instance.Start(); //推荐王奖励数据统计
-            StoreApplyHelper.Instance.StartEverTime(); //分仓临时额度变更
-            PreStoreApplyHelper.Instance.StartEverTime(); //小分仓临时额度变更
-            SetDepositPostService.Instance.Start(); //提交支付公司设置费率接口
-            SetDepositPostService.Instance.StartKdb(); //监控开店宝费率设置结果
-            OperateAmountService.Instance.Start(); //运营中心额度变更
-            LeaderApplyCouponsHelper.Instance.Start(); //盟主储蓄金申请机具券打标记
-            DepositReturnService.Instance.Start(); //退押金到支付宝余额
-            StoreApplyHelper.Instance.ResetStoreReserve(); //重置分仓额度
+            // ChangePosTimer.Instance.Start(); //售后换新执行机具数据转移
+            // RecommendActStatService.Instance.Start(); //推荐王奖励数据统计
+            // StoreApplyHelper.Instance.StartEverTime(); //分仓临时额度变更
+            // PreStoreApplyHelper.Instance.StartEverTime(); //小分仓临时额度变更
+            // SetDepositPostService.Instance.Start(); //提交支付公司设置费率接口
+            // SetDepositPostService.Instance.StartKdb(); //监控开店宝费率设置结果
+            // OperateAmountService.Instance.Start(); //运营中心额度变更
+            // LeaderApplyCouponsHelper.Instance.Start(); //盟主储蓄金申请机具券打标记
+            // DepositReturnService.Instance.Start(); //退押金到支付宝余额
+            // StoreApplyHelper.Instance.ResetStoreReserve(); //重置分仓额度