linwu 2 years ago
parent
commit
81d60a7557
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/admin/controller/User.php

+ 2 - 2
app/admin/controller/User.php

@@ -737,11 +737,11 @@ class User extends BaseController
                 'msg'  => $e->getError(),
             ]));
         }
-        
+
         //手机号
         $check_user_where = [['mobile', '=', $mobile]];
         if (!empty($id)) {
-            $check_user_where[] = ['id', '!=', $id];
+            $check_user_where[] = ['id', '<>', $id];
         }
         $check_user = UserModel::where($check_user_where)->find();
         if (!empty($check_user)) {