|
|
@@ -81,7 +81,7 @@ class User
|
|
|
throw new Exception('请填写正确的手机号码');
|
|
|
}
|
|
|
|
|
|
- if(UserModel::where(['mobile'=> $mobile])->whereNotIn('user_id', $userId)->value('id')){
|
|
|
+ if(UserModel::where(['mobile'=> $mobile])->whereNotIn('user_id', $userId)->value('user_id')){
|
|
|
throw new Exception('手机号码已被使用');
|
|
|
}
|
|
|
|