|
@@ -212,8 +212,8 @@ class User extends Base
|
|
|
if (!$validate->check($params, [], 'changeMobile')) {
|
|
|
$this->error($validate->getError());
|
|
|
}
|
|
|
- $user = $this->auth->getUser();
|
|
|
- if ($user->mobile == $mobile) {
|
|
|
+ $user = $this->auth->getApplication();
|
|
|
+ if ($user->phone == $mobile) {
|
|
|
$this->error(__('手机号不能与当前手机号相同'));
|
|
|
}
|
|
|
// 换绑手机号
|