Эх сурвалжийг харах

修复换绑和解绑再绑,机具IsFirst标记问题
升级打日志

lichunlei 2 жил өмнө
parent
commit
1f98d143cf

+ 1 - 1
AppStart/Helper/StatService.cs

@@ -1746,6 +1746,7 @@ namespace MySystem
                         }
                         if (AfterLevel > BeforeLevel && AfterLevel > 1)
                         {
+                            function.WriteLog("升级:" + user.Id.ToString() + BeforeLevel + "->" + AfterLevel, "创客升级日志");
                             user.UserLevel = AfterLevel;
                             db.UserRank.Add(new UserRank()
                             {
@@ -1761,7 +1762,6 @@ namespace MySystem
                                 OperateDate = DateTime.Now, //操作时间
                             });
                             db.SaveChanges();
-                            // RedisDbconn.Instance.Set("UserLevelData:" + user.Id, BeforeLevel + "#" + AfterLevel);
                         }
                     }
                 }

+ 8 - 1
AppStart/Helper/SycnSpServer/SycnSpMerchantService.cs

@@ -76,7 +76,7 @@ namespace MySystem
                                                 Name = Name.Split('_')[1];
                                             }
                                         }
-                                        else if (Mer.ProductType == "4")
+                                        else if (Mer.ProductType == "4" || Mer.ProductType == "8" || Mer.ProductType == "9")
                                         {
                                             Name = Mer.SeoTitle;
                                         }
@@ -97,6 +97,13 @@ namespace MySystem
                                     }).Entity;
                                     db.SaveChanges();
                                 }
+                                else
+                                {
+                                    string SnNo = add.KqSnNo;
+                                    PxcModels.MachineForMerNo oldPosFor = db.MachineForMerNo.FirstOrDefault(m => m.MerNo == SnNo) ?? new PxcModels.MachineForMerNo();
+                                    PxcModels.PosMachinesTwo oldPos = db.PosMachinesTwo.FirstOrDefault(m => m.Id == oldPosFor.SnId) ?? new PxcModels.PosMachinesTwo();
+                                    pos.IsFirst = oldPos.IsFirst;
+                                }
                                 add.UpdateDate = Mer.UpdateTime;
                                 add.TopUserId = TopUserId;
                                 add.BrandId = BrandId;

+ 2 - 2
Startup.cs

@@ -207,10 +207,10 @@ namespace MySystem
             ReservePayBackService.Instance.Start(); //储备金支付队列
             LeaderPrizeService.Instance.Start(); //大盟主奖励发奖
             MessageCenterService.Instance.Start(); // 消息队列
+            RecommendActStatService.Instance.Start(); //推荐王奖励数据统计
             //必须打开的
-            
 
-            RecommendActStatService.Instance.Start();
+
             // StatService.Instance.StartPosActNum(); //实时统计激活数
             // StatService.Instance.StartNewUserNum(); //实时统计新增创客数
             // StatService.Instance.StatProfit(); //实时统计创客收益