[更新]修正sysconf函数

This commit is contained in:
邹景立 2017-04-24 14:56:04 +08:00
parent 6cb86c5f0f
commit 649559c800

View File

@ -95,7 +95,8 @@ function sysconf($name, $value = false) {
static $config = [];
if ($value !== false) {
$config = [];
return DataService::save('SystemConfig', ['name' => $name, 'value' => $value], 'name');
$data = ['name' => $name, 'value' => $value];
return DataService::save('SystemConfig', $data, 'name');
}
if (empty($config)) {
foreach (Db::name('SystemConfig')->select() as $vo) {