zhangxinlei1996 5 年之前
父节点
当前提交
0369d6c65e
共有 1 个文件被更改,包括 2 次插入2 次删除
  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
 			}
 		}