截止‘运力管理’模块

This commit is contained in:
2026-07-20 11:26:51 +08:00
parent e66b4a3680
commit c6dffb5d97
98 changed files with 19429 additions and 176 deletions

View File

@@ -33,10 +33,14 @@ const isRefreshTokenRequest = config =>
(config.url || '').includes('/oauth/token') &&
(config.params || {}).grant_type === REFRESH_GRANT_TYPE;
// 判断是否为IAM统一身份认证登录请求
const isIamSsoLoginRequest = config => (config.url || '').includes('/iam/sso/token');
// 判断是否为重新登录请求:会开启新的会话周期
const isLoginRequest = config => {
const grantType = (config.params || {}).grant_type;
return (
isIamSsoLoginRequest(config) ||
(config.url || '').includes('/oauth/token') && !!grantType && grantType !== REFRESH_GRANT_TYPE
);
};