zhangxinlei1996 5 жил өмнө
parent
commit
0369d6c65e

+ 2 - 2
entbase/src/service/auth/auth.go

@@ -246,11 +246,11 @@ func (this *AuthService) EntAuthSubmit() {
 		step := this.GetString("step")     //认证类型 “1”:事业单位 其他:企业
 		step := this.GetString("step")     //认证类型 “1”:事业单位 其他:企业
 		auth_type, _ := strconv.Atoi(step)
 		auth_type, _ := strconv.Atoi(step)
 		//校验
 		//校验
-		if len(entName) < 0 {
+		if len(entName) < 0 || len(entUSCC) < 0 {
 			return "输入信息错误", nil
 			return "输入信息错误", nil
 		}
 		}
 		if step != "1" {
 		if step != "1" {
-			if !idCardNumExp.MatchString(legalIdcode) || len(legalName) < 0 || len(entUSCC) < 0 {
+			if !idCardNumExp.MatchString(legalIdcode) || len(legalName) < 0 {
 				return "输入信息错误", nil
 				return "输入信息错误", nil
 			}
 			}
 		}
 		}