فهرست منبع

修复设置费率bug

lcl 2 ماه پیش
والد
کامیت
d26f399d54
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      Util/HaoDa/HaoDaFeeHelper.cs

+ 2 - 1
Util/HaoDa/HaoDaFeeHelper.cs

@@ -53,10 +53,11 @@ public class HaoDaFeeHelper
                 if(string.IsNullOrEmpty(FeeRate)) FeeRate = "0.38";
                 string result = HaoDaHelper.Instance.SetFee(addinfo.MchtNo, FeeRate, addinfo.BrandId, addinfo.AgentName);
                 JsonData jsonObj = JsonMapper.ToObject(result);
+                result = result.Replace("null", "\"\"");
                 int Status = 0;
                 string Remark = "";
                 string resultCode = jsonObj["resultCode"].ToString();
-                if(resultCode != "0")
+                if(resultCode != "1")
                 {
                     Remark = jsonObj["errorDesc"].ToString();
                 }