|
@@ -79,9 +79,12 @@ class User extends Api
|
|
|
}
|
|
|
$user = \app\common\model\User::getByMobile($mobile);
|
|
|
if ($user) {
|
|
|
- if ($user->status != 'normal') {
|
|
|
+ if ($user->status == 'hidden') {
|
|
|
$this->error(__('Account is locked'));
|
|
|
}
|
|
|
+ if ($user->status == 'logout') {
|
|
|
+ $this->error(__('账号已注销'));
|
|
|
+ }
|
|
|
//如果已经有账号则直接登录
|
|
|
$ret = $this->auth->direct($user->id);
|
|
|
} else {
|