Explorar el Código

修复每天凌晨执行商户型创客转非商户型创客bug

lichunlei hace 3 años
padre
commit
6f88b0339d

+ 2 - 2
AppStart/Helper/StatService.cs

@@ -167,7 +167,7 @@ namespace MySystem
                     {
                         edit.MerchantType = 0;
                         db.SaveChanges();
-                        RedisDbconn.Instance.Set("Users:" + user.Id, user);
+                        RedisDbconn.Instance.Set("Users:" + user.Id, edit);
                     }
                 }
             }
@@ -574,7 +574,7 @@ namespace MySystem
 
                                                 //收支明细
                                                 RedisDbconn.Instance.AddList("UserAccountRecord:" + puser.Id + ":1:" + monthString, userAccountRecord);
-                                                RedisDbconn.Instance.AddNumber("UserAccount:" + puser.Id + ":1:" + monthString, ActPrize);
+                                                RedisDbconn.Instance.AddNumber("UserAccount:" + puser.Id + ":1:" + monthString, Prize);
 
                                                 Prize -= 10;
                                             }

+ 0 - 5
AppStart/Helper/SycnSpServer/SycnSpBindService.cs

@@ -15,13 +15,10 @@ namespace MySystem
 
         public void Start()
         {
-            function.WriteLog("1", "SycnSpServer监控");
             WebCMSEntities spdb = new WebCMSEntities();
             PxcModels.WebCMSEntities db = new PxcModels.WebCMSEntities();
             DateTime start = DateTime.Now.AddDays(-2);
-            function.WriteLog("2", "SycnSpServer监控");
             var Binds = spdb.BindRecord.Select(m => new { m.Id, m.CreateTime, m.Status, m.MerNo, m.MerSnNo }).Where(m => m.CreateTime >= start && m.Status == 1).OrderByDescending(m => m.Id).ToList();
-            function.WriteLog("3:count:" + Binds.Count, "SycnSpServer监控");
             foreach (var Bind in Binds)
             {
                 PxcModels.MachineForSnNo posFor = db.MachineForSnNo.FirstOrDefault(m => m.SnNo == Bind.MerSnNo) ?? new PxcModels.MachineForSnNo();
@@ -62,13 +59,11 @@ namespace MySystem
                 MachineData.UnBindCount -= 1;
                 db.SaveChanges();
                 BothdisDbconn.Instance.SendMq("Pop:UserMachineData", MachineData);
-                function.WriteLog("BindId:" + Bind.Id, "SycnSpServer监控");
             }
             spdb.SaveChanges();
             spdb.Dispose();
             db.SaveChanges();
             db.Dispose();
-            function.WriteLog(":ok:", "SycnSpServer监控");
         }
     }
 }

BIN
bin/release/netcoreapp3.0/MySystem.dll


BIN
bin/release/netcoreapp3.0/MySystem.pdb


BIN
obj/release/netcoreapp3.0/MySystem.dll


BIN
obj/release/netcoreapp3.0/MySystem.pdb