Bladeren bron

推荐王打日志

lcl 2 maanden geleden
bovenliggende
commit
d038ac5df0
1 gewijzigde bestanden met toevoegingen van 9 en 9 verwijderingen
  1. 9 9
      AppStart/Helper/RecommandKingHelper.cs

+ 9 - 9
AppStart/Helper/RecommandKingHelper.cs

@@ -181,7 +181,7 @@ namespace MySystem
             //统计当月下单名单
             var orderids = productdb.KxsShopOrderInfo.Where(m => ProductIds.Contains(m.GoodsId)).ToList().Select(m => m.OrderId).ToList();
             var orders = productdb.KxsShopOrder.Where(m => m.PayTime >= check && m.Status > 0 && m.UserId > 1 && orderids.Contains(m.Id)).ToList();
-            function.WriteLog(orders.Count.ToString(), "推荐王创客入库");
+            function.WriteLog("kind:" + Kind + "--" + orders.Count.ToString(), "推荐王日志");
             List<int> uids = orders.Select(m => m.UserId).Distinct().ToList();
             foreach(int uid in uids)
             {
@@ -201,7 +201,7 @@ namespace MySystem
                             Kind = 1,
                             Op = false,
                         });
-                        function.WriteLog(user.Id.ToString(), "推荐王创客入库");
+                        function.WriteLog("kind:" + Kind + "-1-" + user.Id.ToString(), "推荐王日志");
                     }
                 }
             }
@@ -227,7 +227,7 @@ namespace MySystem
                 if(ActCount > 0)
                 {
                     user.Op = true;
-                    function.WriteLog(user.UserId.ToString(), "推荐王达标创客名单");
+                    function.WriteLog("有效标记-kind:" + Kind + "--" + user.UserId.ToString(), "推荐王日志");
                 }
             }
             foreach(int uid in uids)
@@ -255,7 +255,7 @@ namespace MySystem
                                     Kind = 2,
                                     Op = false,
                                 });
-                                function.WriteLog(puser.Id.ToString() + "-p", "推荐王创客入库");
+                                function.WriteLog("kind:" + Kind + "--" + puser.Id.ToString() + "-p", "推荐王日志");
                             }
                         }
                     }
@@ -268,19 +268,19 @@ namespace MySystem
                 int Count = users.Count(m => m.ParentNav.Contains(UserIdStr) && m.Op);
                 user.ActCount = Count;
                 user.ChkActCount = Count;
-                function.WriteLog(user.UserId + ":" + Count, "推荐王总的达标创客数量");
+                function.WriteLog("kind:" + Kind + "--" + user.UserId + ":" + Count, "推荐王日志");
                 // RedisDbconn.Instance.AddList("userstmp2024", user);
             }
             // users = RedisDbconn.Instance.GetList<RecommandKingItem>("userstmp2024", 1, 999999).OrderByDescending(m => m.Level).ToList();
             users = users.OrderByDescending(m => m.Level).ToList();
             foreach(RecommandKingItem user in users)
             {
-                function.WriteLog(user.UserId.ToString() + "-" + user.UserLevel, "推荐王最终的达标创客数量分析");
+                function.WriteLog("kind:" + Kind + "--" + user.UserId.ToString() + "-" + user.UserLevel, "推荐王日志");
                 int ActCount = 0;
                 List<RecommandKingItem> subs = users.Where(m => m.ParentUserId == user.UserId).ToList();
                 foreach(RecommandKingItem sub in subs)
                 {
-                    function.WriteLog(sub.UserId + ":" + sub.ActCount, "推荐王最终的达标创客数量分析");
+                    function.WriteLog("kind:" + Kind + "--" + sub.UserId + ":" + sub.ActCount, "推荐王日志");
                     if(sub.ActCount < CheckCount && sub.UserLevel < 5 && !Historys.Contains(sub.UserId))
                     {
                         ActCount += sub.ActCount;
@@ -288,7 +288,7 @@ namespace MySystem
                     }
                 }
                 user.ActCount = ActCount;
-                function.WriteLog("\n\n\n", "推荐王最终的达标创客数量分析");
+                function.WriteLog("\n\n\n", "推荐王日志");
             }
 
             int num = 0;
@@ -307,7 +307,7 @@ namespace MySystem
                     {
                         if(user.ActCount > 0)
                         {
-                            function.WriteLog(user.UserId.ToString(), "推荐王达标最终入库");
+                            function.WriteLog("入库-kind:" + Kind + "--" + user.UserId.ToString(), "推荐王日志");
                             item = db.KxsInviteKing.Add(new KxsInviteKing()
                             {
                                 UserId = user.UserId,