This commit is contained in:
2025-12-10 16:32:51 +08:00
parent c0bd385b1a
commit a83a2d2356
+5 -5
View File
@@ -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)) {