Browse Source

Merge branch 'fix-盛付通设置费率日志' into develop

lcl 2 years ago
parent
commit
937d5726b0

+ 2 - 0
AppStart/Helper/SetDepositPostService.cs

@@ -888,7 +888,9 @@ namespace MySystem
             }
             signString = signString.TrimEnd('&');
             req.Add("mac", SftEncrypt(signString));
+            function.WriteLog(Newtonsoft.Json.JsonConvert.SerializeObject(req), "设置盛付通机具费率");
             string result = function.PostWebRequest(SftReqUrl + "batchChangeMerchantFee", Newtonsoft.Json.JsonConvert.SerializeObject(req), "application/json");
+            function.WriteLog(result + "\n\n", "设置盛付通机具费率");
             return result;
         }
 

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

@@ -100,6 +100,9 @@ namespace MySystem
                                 PxcModels.PosMerchantInfo merchant = db.PosMerchantInfo.FirstOrDefault(m => m.Id == pos.BindMerchantId);
                                 if(merchant != null)
                                 {
+                                    //备份解绑的商户信息
+                                    CustomerSqlConn.op("insert into PosMerchantInfoBak select * from PosMerchantInfo where Id=" + pos.BindMerchantId, MysqlConn.SqlConnStr);
+                                    db.SaveChanges();
                                     pos.BindMerchantId = 0;
                                     pos.BindingState = 0;
                                     pos.BindingTime = null;