mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-08 19:12:48 +08:00
修改sysconfig用法;
This commit is contained in:
@@ -88,7 +88,7 @@ if (!function_exists('sysconfig')) {
|
|||||||
$value = Cache::get('sysconfig_' . $group);
|
$value = Cache::get('sysconfig_' . $group);
|
||||||
|
|
||||||
if (empty($value)) {
|
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);
|
Cache::tag('sysconfig')->set('sysconfig_' . $group, $value);
|
||||||
}
|
}
|
||||||
if (is_null($value)) {
|
if (is_null($value)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user