mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-04 09:02:49 +08:00
修改sysconfig用法;
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user