瀏覽代碼

小微商户进件随机数改为8位
商户进件未通过重新提交时直接修改状态为待审核,清空相关错误提示

DuGuYang 1 年之前
父節點
當前提交
584ba39c4f

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

@@ -196,7 +196,8 @@ namespace MySystem.Areas.Api.Controllers.v1
             {
                 if (SubjectType == "SUBJECT_TYPE_SMALL")
                 {
-                    CertMerchantName += function.MD5_16(Guid.NewGuid().ToString("N"));
+                    // CertMerchantName += function.MD5_16(Guid.NewGuid().ToString("N"));
+                    CertMerchantName += function.get_Random(00000000,99999999);
                 }
                 var query = MerchantAddInfoService.Query(" CertMerchantName='" + CertMerchantName + "'");
                 if (query.Id == 0)

+ 3 - 0
Util/Main/MerchantAddInfoUtil.cs

@@ -154,6 +154,9 @@ namespace MySystem
             {
                 if (MerchantAddInfoService.Exist(Id))
                 {
+                    Fields.Add("Status", 0);
+                    Fields.Add("WeChatRemark", null);
+                    Fields.Add("AlipayRemark", null);
                     info = MerchantAddInfoService.Edit(Fields, Id, false);
                 }
                 else

+ 1 - 0
Util/Main/MerchantInfoUtil.cs

@@ -36,6 +36,7 @@ namespace MySystem
             }
             else
             {
+                Fields.Add("Status", 0);
                 info = MerchantInfoService.Edit(Fields, Id, false);
             }
             return info;