Browse Source

fix: 手机号重复新增

hsun 2 months ago
parent
commit
70dd3c3dfa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      controllers/users.go

+ 1 - 1
controllers/users.go

@@ -111,7 +111,7 @@ func (this *UsersController) Add() {
 			br.ErrMsg = fmt.Sprintf("获取重复手机号失败, %v", e)
 			return
 		}
-		if exist != nil && exist.CompanyId > 0 {
+		if exist != nil && exist.UserId > 0 {
 			br.Msg = "手机号已存在"
 			return
 		}