|
@@ -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'];
|