Browse Source

wifi绑定数据推送如果没有商户号则用SN填充

lcl 11 months ago
parent
commit
9f72f6c94f
1 changed files with 8 additions and 1 deletions
  1. 8 1
      AppStart/Helper/SycnSpServer/SycnSpMerchantService.cs

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

@@ -38,7 +38,14 @@ namespace MySystem
                         var tran = db.Database.BeginTransaction();
                         try
                         {
-                            if(Mer.Field2 != "解绑" && Mer.Field2 != "UNBIND" && Mer.ProductType != "12" && Mer.ProductType != "30") PosPushDataNewHelper.Bind(Mer);
+                            if(Mer.Field2 != "解绑" && Mer.Field2 != "UNBIND" && Mer.ProductType != "12" && Mer.ProductType != "30")
+                            {
+                                if(Utils.Instance.IsWifi(int.Parse(Mer.ProductType)))
+                                {
+                                    Mer.MerNo = Mer.SnNo;
+                                }
+                                PosPushDataNewHelper.Bind(Mer);
+                            }
                             PxcModels.PosMachinesTwo pos = db.PosMachinesTwo.FirstOrDefault(m => m.PosSn == Mer.SnNo) ?? new PxcModels.PosMachinesTwo();
                             if (pos.BindingState == 1 && Mer.Field2 != "解绑" && Mer.Field2 != "UNBIND")
                             {