This commit is contained in:
Your Name
2026-11-26 15:46:20 +08:00
parent db6d327e91
commit be79e09c83
170 changed files with 21159 additions and 13217 deletions
@@ -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;
}