1
This commit is contained in:
@@ -10,8 +10,8 @@ use support\exception\BusinessException;
|
|||||||
class BasicDataService
|
class BasicDataService
|
||||||
{
|
{
|
||||||
// 定义Redis键名前缀常量
|
// 定义Redis键名前缀常量
|
||||||
const LOGIN_TYPE_KEY = 'bsh_info_login_types';
|
const LOGIN_TYPE_KEY = 'bsh_sample_login_types';
|
||||||
const SYSTEM_CODE_KEY = 'bsh_info_system_codes';
|
const SYSTEM_CODE_KEY = 'bsh_sample_system_codes';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 检查并缓存独立的基础参数
|
* 检查并缓存独立的基础参数
|
||||||
@@ -79,9 +79,9 @@ class BasicDataService
|
|||||||
$cacheKey = self::SYSTEM_CODE_KEY;
|
$cacheKey = self::SYSTEM_CODE_KEY;
|
||||||
|
|
||||||
// 如果集合已存在,直接返回
|
// 如果集合已存在,直接返回
|
||||||
// if (Redis::exists($cacheKey)) {
|
if (Redis::exists($cacheKey)) {
|
||||||
// return;
|
return;
|
||||||
// }
|
}
|
||||||
|
|
||||||
$systemCodes = $this->getAllSystemCodes();
|
$systemCodes = $this->getAllSystemCodes();
|
||||||
if (empty($systemCodes)) {
|
if (empty($systemCodes)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user