zhangxinlei1996 5 tahun lalu
induk
melakukan
0369d6c65e
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  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
 			}
 		}