igengx
This commit is contained in:
@@ -56,7 +56,7 @@ class LoginMiddleware
|
||||
}
|
||||
|
||||
//token临近过期,自动续期
|
||||
if ($adminInfo) {
|
||||
if ($adminInfo && (int) ($adminInfo['terminal'] ?? 0) !== AdminTerminalEnum::WORKSTATION) {
|
||||
//获取临近过期自动续期时长
|
||||
$beExpireDuration = AdminTokenService::renewalWindow($adminInfo['terminal'] ?? 0);
|
||||
//token续期
|
||||
@@ -93,6 +93,9 @@ class LoginMiddleware
|
||||
|
||||
private static function isWorkWechatBindExemptAction($request): bool
|
||||
{
|
||||
if (strtolower($request->controller() . '/' . $request->action()) === 'login/desktopheartbeat') {
|
||||
return true;
|
||||
}
|
||||
if (LoginLogic::isWorkWechatBindExemptActionName((string) $request->action())) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user