wesmiler 3 năm trước cách đây
mục cha
commit
ff5baae6e1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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('手机号码已被使用');
         }