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

修复绑定推送消息解析bug

lcl 8 сар өмнө
parent
commit
2489dbccce

+ 2 - 1
AppStart/Helper/SycnSpServer/SycnSpBindService.cs

@@ -150,7 +150,8 @@ namespace MySystem
                                 }
                                 else
                                 {
-                                    if(pos.BrandId == 12 || pos.BrandId == 13)
+                                    pos = db.PosMachinesTwo.FirstOrDefault(m => m.Id == posFor.SnId && (m.BrandId == 12 || m.BrandId == 13) && m.BindingState == 1);
+                                    if (pos != null)
                                     {
                                         pos = db.PosMachinesTwo.FirstOrDefault(m => m.PosSn == Bind.MerSnNo && m.BindingState == 1);
                                         if (pos != null)

+ 0 - 2
Startup.cs

@@ -250,8 +250,6 @@ namespace MySystem
                 ToBigHelper.Instance.Start(); //机具通对资格
                 TradeFilterService.Instance.Start(); //营训奖励拦截
 
-                SycnSpTradeServiceTest.Instance.Start();
-
                 // PosCouponPrizeTest.Instance.Start();
             // }
 

+ 1 - 1
appsettings.json

@@ -21,7 +21,7 @@
     "Pxc1SqlConnStr": "server=rm-2vcs4j67tla603c9d5o.mysql.cn-chengdu.rds.aliyuncs.com;port=3306;user=KxsProfitServer;password=FrW8ZfxlcaVdm1r0;database=KxsProfitServer;charset=utf8;DefaultCommandTimeout=600;",
     "ReadSqlConnStr": "server=rr-2vc53lrwpwm1ewscogo.mysql.cn-chengdu.rds.aliyuncs.com;port=3306;user=KxsProfitServer;password=FrW8ZfxlcaVdm1r0;database=KxsProfitServer;charset=utf8;DefaultCommandTimeout=600;",
     "MainSqlConnStr": "server=rm-2vcs4j67tla603c9d5o.mysql.cn-chengdu.rds.aliyuncs.com;port=3306;user=KxsProfitServer;password=FrW8ZfxlcaVdm1r0;database=KxsStatServer;charset=utf8;",
-    "SpSqlConnStr": "server=jumpserver.kexiaoshuang.com;port=33061;user=2014446e-7e89-4a2e-9c54-201ce047af8b;password=IOW56rEoBGkr1PfO;database=KxsSpServer;charset=utf8;",
+    "SpSqlConnStr": "server=jumpserver.kexiaoshuang.com;port=33061;user=a76afa5e-dfd7-4ef0-b75a-0f5b0be25878;password=ms0gXxdtZiqI3wax;database=KxsSpServer;charset=utf8;",
     "OpSqlConnStr": "server=rm-2vcs4j67tla603c9d5o.mysql.cn-chengdu.rds.aliyuncs.com;port=3306;user=KxsProfitServer;password=FrW8ZfxlcaVdm1r0;database=KxsOpServer;charset=utf8;",
     "MpSqlConnStr": "server=rm-2vc27k81v217qs1t55o.mysql.cn-chengdu.rds.aliyuncs.com;port=3306;user=QrCodePlateMainServer;password=ll4DFaALMu9YIooM;database=QrCodePlateMainServer;charset=utf8;",
     "MpSqlConnStr2": "server=rm-2vc27k81v217qs1t55o.mysql.cn-chengdu.rds.aliyuncs.com;port=3306;user=QrCodePlateMainServer;password=ll4DFaALMu9YIooM;database=QrCodePlateMainServer2;charset=utf8;",