mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-05-22 06:49:15 +08:00
Update Auth.php
This commit is contained in:
parent
ae94f2b78d
commit
c9c185f552
@ -50,10 +50,9 @@ abstract class Auth extends Controller
|
||||
}
|
||||
// 获取用户数据
|
||||
$this->user = $this->getUser();
|
||||
if (empty($this->user) || empty($this->user['id'])) {
|
||||
$this->uuid = $this->user['id'] ?? '';
|
||||
if (empty($this->uuid)) {
|
||||
$this->error('用户登录失败!', '{-null-}', 401);
|
||||
} else {
|
||||
$this->uuid = $this->user['id'];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user