Sfoglia il codice sorgente

fix: 手机号重复新增

hsun 2 mesi fa
parent
commit
70dd3c3dfa
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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
 		}