代码优化

This commit is contained in:
wong
2025-04-30 11:15:19 +08:00
parent 43a27ef35f
commit 209cc96dce
8 changed files with 281 additions and 154 deletions

View File

@@ -11,6 +11,7 @@
// 应用公共文件
use app\common\service\AuthService;
use think\facade\Cache;
if (!function_exists('requestCurl')) {
/**
@@ -376,7 +377,8 @@ if (!function_exists('handleApiResponse')) {
// 不是JSON格式直接返回原始数据
if($response == '无效路径或登录状态失效'){
\think\facade\Cache::rm('system_refresh_token');
Cache::rm('system_refresh_token');
Cache::rm('system_authorization_token');
AuthService::getSystemAuthorization();
}