|
@@ -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
|
|
|
}
|
|
|
}
|