zhangxinlei1996 5 years ago
parent
commit
0369d6c65e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      entbase/src/service/auth/auth.go

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

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