wesmiler 3 лет назад
Родитель
Сommit
ff5baae6e1
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      source/application/api/service/User.php

+ 1 - 1
source/application/api/service/User.php

@@ -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('手机号码已被使用');
         }