Explorar el Código

换绑限制,力pos,绑定队列中排除CHANGE_BIND

lcl hace 1 semana
padre
commit
f862393473

BIN
.DS_Store


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

@@ -57,6 +57,16 @@ namespace MySystem
                                     RedisDbconn.Instance.AddList("kxs_unbindwifi_list", fileName + "#cut#" + content + "#cut#" + fileName);
                                 }
                             }
+                            else if(Bind.Field1 == "CHANGE_BIND" && Bind.ProductType == "34")
+                            {
+                                PosPushDataNewHelper.ChangeBind(new ChangeBindRecord()
+                                {
+                                    MerNo = Bind.MerNo,
+                                    MerSnNo = Bind.Field2,
+                                    ProductType = Bind.ProductType,
+                                    MerNewSnNo = Bind.MerSnNo,
+                                });
+                            }
                             else
                             {
                                 if(Utils.Instance.IsWifi(int.Parse(Bind.ProductType)))

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

@@ -39,7 +39,7 @@ namespace MySystem
                         var tran = db.Database.BeginTransaction();
                         try
                         {
-                            if (Mer.Field2 != "解绑" && Mer.Field2 != "UNBIND")
+                            if (Mer.Field2 != "解绑" && Mer.Field2 != "UNBIND" && Mer.Field2 != "CHANGE_BIND")
                             {
                                 string rnd = "";
                                 if (!Utils.Instance.IsWifi(int.Parse(Mer.ProductType)) && !Utils.Instance.IsHaoDa(int.Parse(Mer.ProductType)) && Mer.ProductType != "14")