|
@@ -96,8 +96,14 @@ class Auth
|
|
$this->setError('Account not exist');
|
|
$this->setError('Account not exist');
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
- if (!in_array($user['status'],['normal','new'])) {
|
|
+ if (!in_array($user['status'],['normal'])) {
|
|
- $this->setError('Account is locked');
|
|
+ if ($user['status'] == 'hidden') {
|
|
|
|
+ $this->setError('Account is locked');
|
|
|
|
+ } else if ($user['status'] == 'cancel') {
|
|
|
|
+ $this->setError('账号已注销');
|
|
|
|
+ } else {
|
|
|
|
+ $this->setError('账号状态异常');
|
|
|
|
+ }
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|