修改sysconfig用法;

This commit is contained in:
2022-04-19 18:13:26 +08:00
parent 0fb9196d49
commit c9c2ff92e0

View File

@@ -88,7 +88,7 @@ if (!function_exists('sysconfig')) {
$value = Cache::get('sysconfig_' . $group);
if (empty($value)) {
$value = \app\admin\model\SystemConfig::where('name', $group)->column('value', 'name');
$value = \app\admin\model\SystemConfig::where('name', $group)->value('value');
Cache::tag('sysconfig')->set('sysconfig_' . $group, $value);
}
if (is_null($value)) {