diff --git a/app/common/service/BasicDataService.php b/app/common/service/BasicDataService.php index 44975f0..18bf95b 100644 --- a/app/common/service/BasicDataService.php +++ b/app/common/service/BasicDataService.php @@ -10,8 +10,8 @@ use support\exception\BusinessException; class BasicDataService { // 定义Redis键名前缀常量 - const LOGIN_TYPE_KEY = 'bsh_info_login_types'; - const SYSTEM_CODE_KEY = 'bsh_info_system_codes'; + const LOGIN_TYPE_KEY = 'bsh_sample_login_types'; + const SYSTEM_CODE_KEY = 'bsh_sample_system_codes'; /** * 检查并缓存独立的基础参数 @@ -79,9 +79,9 @@ class BasicDataService $cacheKey = self::SYSTEM_CODE_KEY; // 如果集合已存在,直接返回 -// if (Redis::exists($cacheKey)) { -// return; -// } + if (Redis::exists($cacheKey)) { + return; + } $systemCodes = $this->getAllSystemCodes(); if (empty($systemCodes)) {