浏览代码

修复设置费率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();
                 }