浏览代码

关闭升级分润

lichunlei 1 年之前
父节点
当前提交
b476e179f3
共有 4 个文件被更改,包括 10 次插入14 次删除
  1. 3 3
      AppStart/Helper/LeaderCompPrizeHelper.cs
  2. 2 2
      AppStart/Helper/Profit/ProfitHelperV2.cs
  3. 3 3
      AppStart/Helper/StatService.cs
  4. 2 6
      Startup.cs

+ 3 - 3
AppStart/Helper/LeaderCompPrizeHelper.cs

@@ -41,7 +41,7 @@ namespace MySystem
                         //     CustomerSqlConn.op("insert into LeaderCompTradeStatBak select * from LeaderCompTradeStat;insert into LeaderCompTmpBak select * from LeaderCompTmp;insert into LeaderCompPrizeBak select * from LeaderCompPrize;insert into LeaderCompAddTradeBak select * from LeaderCompAddTrade;", MysqlConn.SqlConnStr);
                         // }
                         // // Ready(DateTime.Now.ToString("yyyy-MM"));
-                        Ready("202310");
+                        Ready(DateTime.Now.ToString("yyyyMM"));
                     }
                 }
                 Thread.Sleep(60000);
@@ -69,8 +69,8 @@ namespace MySystem
             //     SendPrize(month, checkMonth);
             //     now = now.AddMonths(-1);
             // }
-            doSomething("202310", "202309");
-            SendPrize("202310", "202309");
+            doSomething(curMonth, curMonth);
+            SendPrize(curMonth, curMonth);
         }
 
         public void doSomething(string month, string checkMonth)

+ 2 - 2
AppStart/Helper/Profit/ProfitHelperV2.cs

@@ -38,7 +38,7 @@ namespace MySystem
             while (true)
             {
                 string content = RedisDbconn.Instance.RPop<string>("DoProfitQueue");
-                if(!string.IsNullOrEmpty(content) && DateTime.Now.Day < 21)
+                if(!string.IsNullOrEmpty(content) && DateTime.Now.Day < 14)
                 {
                     StatProfiting();
                 }
@@ -770,7 +770,7 @@ namespace MySystem
                                         }
                                         if (UserLevel <= maxLevel && UserLevel > curLevel)
                                         {
-                                            int LevelKindId = GetLevelKindId(BrandId, 2, 1);
+                                            int LevelKindId = GetLevelKindId(BrandId, 3, 1);
                                             ProfitObjectLevels objlevel = RedisDbconn.Instance.Get<ProfitObjectLevels>("pobjlv" + LevelKindId + ":" + UserLevel); //获取当前等级参数
                                             if (objlevel != null)
                                             {

+ 3 - 3
AppStart/Helper/StatService.cs

@@ -1987,7 +1987,7 @@ namespace MySystem
         {
             while (true)
             {
-                if(DateTime.Now.Day < 29 && DateTime.Now.Hour > 1)
+                if(DateTime.Now.Day < 15 && DateTime.Now.Hour >= 0)
                 {
                     string Month = DateTime.Now.AddDays(-1).ToString("yyyy-MM");
                     string flag = function.ReadInstance("/ProfitFlag/" + Month + ".txt");
@@ -2198,7 +2198,7 @@ namespace MySystem
                 string TradeMonth = DateTime.Now.AddMonths(-1).ToString("yyyyMM");
                 List<UserLevelSet> sets = db.UserLevelSet.ToList();
                 bool op = true;
-                int startid = 0;
+                int startid = 138681;
                 while(op)
                 {
                     var users = db.Users.Select(m => new { m.Id, m.AuthFlag }).Where(m => m.Id > startid && m.AuthFlag == 1).OrderBy(m => m.Id).Take(500).ToList();
@@ -2446,7 +2446,7 @@ namespace MySystem
             mpmaindb.Dispose();
             mpmaindb2.Dispose();
 
-            // RedisDbconn.Instance.AddList("DoTableEveryMonthQueue", "1");
+            RedisDbconn.Instance.AddList("DoTableEveryMonthQueue", "1");
         }
 
 

+ 2 - 6
Startup.cs

@@ -182,14 +182,10 @@ namespace MySystem
                 StatService.Instance.StartActiveReward2(); //实时处理盒易付0押激活奖励
                 StatService.Instance.StartSimActive(); //实时广电卡激活奖励
                 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(); //红包活动发奖
+                // StatService.Instance.StatUserLevel(); //升级
+                // ProfitHelperV2.Instance.StatProfit(); //创客分润
                 ActRewardService.Instance.Start(); //发放激活奖励
                 HelpProfitPreMerchantHelper.Instance.Start(); //助利宝每天增加指定数量商机
                 AddActService.Instance.Start(); //划拨后检查机具激活状态,并自动补录