diff --git a/application/common.php b/application/common.php index 120828764..9376e4c3b 100644 --- a/application/common.php +++ b/application/common.php @@ -95,7 +95,7 @@ function sysconf($name, $value = false) { static $config = []; if ($value !== false) { $config = []; - return DataService::save('SystemConfig', ['name' => $value], 'name'); + return DataService::save('SystemConfig', ['name' => $name, 'value' => $value], 'name'); } if (empty($config)) { foreach (Db::name('SystemConfig')->select() as $vo) { diff --git a/application/wechat/view/news.form.html b/application/wechat/view/news.form.html index 03053bed9..df22c0afb 100644 --- a/application/wechat/view/news.form.html +++ b/application/wechat/view/news.form.html @@ -57,19 +57,18 @@