配置读取优

feat/task1-c-wallet
gongfuxiang 2025-03-03 21:24:40 +08:00
parent f89ebc8fe4
commit 6d6d91fd58
1 changed files with 1 additions and 1 deletions

View File

@ -3378,7 +3378,7 @@ function MyC($key, $default = '', $mandatory = false)
return $default;
}
// 2. 未设置则默认值
if($mandatory === true && $cache_config_data[$key] === null)
if($mandatory === true && ($cache_config_data[$key] === null || $cache_config_data[$key] === ''))
{
return $default;
}