瀏覽代碼

进件默认机构设置

lcl 5 月之前
父節點
當前提交
7517f2a30b
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      Areas/Api/Controllers/Main/MerchantAddInfoController.cs

+ 3 - 2
Areas/Api/Controllers/Main/MerchantAddInfoController.cs

@@ -49,8 +49,8 @@ namespace MySystem.Areas.Api.Controllers.v1
             JsonData data = JsonMapper.ToObject(value);
             int UserId = int.Parse(function.CheckInt(data.getItem("UserId").ToString()));
             string CertMerchantName = data.getItem("CertMerchantName").ToString(); //- 商户名称
-            string check = RedisDbconn.Instance.Get<string>("MerchantConfirmWait:" + UserId + "_" + function.MD5_16(CertMerchantName));
-            if (!string.IsNullOrEmpty(check))
+            string chk = RedisDbconn.Instance.Get<string>("MerchantConfirmWait:" + UserId + "_" + function.MD5_16(CertMerchantName));
+            if (!string.IsNullOrEmpty(chk))
             {
                 return new AppResultJson() { Status = "-1", Info = "资料已提交,请等待系统处理" };
             }
@@ -371,6 +371,7 @@ namespace MySystem.Areas.Api.Controllers.v1
             Fields.Add("BrandId", BrandId); // 品牌(0 银联 1 好哒)
             Fields.Add("CybMakerCode", CybMakerCode); //创业帮创客编号
             Fields.Add("FeeRate", SettleFee); //费率
+            Fields.Add("AgentName", function.CheckNull(RedisDbconn.Instance.Get<string>("PublicAgentName"))); //费率
             MerchantAddInfoId = (int)MerchantInfoUtil.EditMerchantInfo(MerchantAddInfoId, UserId, CertMerchantName, MobilePhone, BizAddressCode, BizStoreAddress, BindStatus, BrandId, CybMakerCode).Data;
             MerchantAddInfoUtil.EditMerchantAddInfo(Fields, MerchantAddInfoId);
             if (Finish == 1)