Kirin 3 年之前
父節點
當前提交
6ba226f0f5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/admin/controller/user/User.php

+ 1 - 1
app/admin/controller/user/User.php

@@ -437,7 +437,7 @@ class User extends AuthController
         } else {
             $res2 = true;
         }
-        if (UserModel::where(['account' => $edit['phone']])->where('uid', '<>', $uid)->find()) {
+        if (UserModel::where(['account' => $data['phone']])->where('uid', '<>', $uid)->find()) {
             Json::fail('手机号已存在!');
         }
         $edit['status'] = $data['status'];