瀏覽代碼

小微商户商户名不能修改

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

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

@@ -197,7 +197,7 @@ namespace MySystem.Areas.Api.Controllers.v1
                 if (SubjectType == "SUBJECT_TYPE_SMALL")
                 {
                     // CertMerchantName += function.MD5_16(Guid.NewGuid().ToString("N"));
-                    CertMerchantName += function.get_Random(00000000,99999999);
+                    CertMerchantName += function.get_Random(00000000, 99999999);
                 }
                 var query = MerchantAddInfoService.Query(" CertMerchantName='" + CertMerchantName + "'");
                 if (query.Id == 0)
@@ -218,7 +218,10 @@ namespace MySystem.Areas.Api.Controllers.v1
             }
             else
             {
-                Fields.Add("CertMerchantName", CertMerchantName);
+                if (SubjectType != "SUBJECT_TYPE_SMALL")
+                {
+                    Fields.Add("CertMerchantName", CertMerchantName);
+                }
             }
             // var ActivitiesId = "20191030111cff5b5e";
             // var ActivitiesRate = "0.38";