mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
fix: 修复登录状态监测错误
This commit is contained in:
@@ -473,11 +473,9 @@ class AdminControllerBase extends BaseController
|
||||
}
|
||||
|
||||
$back_url = $this->request->url();
|
||||
if (empty($admin)) {
|
||||
$this->error('请先登录后台', [], __url('admin/login/index', ['back_url' => $back_url]));
|
||||
}
|
||||
$adminId = $admin['id'];
|
||||
$expireTime = $admin['expire_time'];
|
||||
|
||||
$adminId = $admin['id'] ?? '';
|
||||
$expireTime = $admin['expire_time'] ?? '';
|
||||
|
||||
/** @var AuthService $authService */
|
||||
$authService = app(AuthService::class, ['adminId' => $adminId]);
|
||||
|
||||
Reference in New Issue
Block a user