mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]修正sysconf函数
This commit is contained in:
parent
6cb86c5f0f
commit
649559c800
@ -95,7 +95,8 @@ function sysconf($name, $value = false) {
|
|||||||
static $config = [];
|
static $config = [];
|
||||||
if ($value !== false) {
|
if ($value !== false) {
|
||||||
$config = [];
|
$config = [];
|
||||||
return DataService::save('SystemConfig', ['name' => $name, 'value' => $value], 'name');
|
$data = ['name' => $name, 'value' => $value];
|
||||||
|
return DataService::save('SystemConfig', $data, 'name');
|
||||||
}
|
}
|
||||||
if (empty($config)) {
|
if (empty($config)) {
|
||||||
foreach (Db::name('SystemConfig')->select() as $vo) {
|
foreach (Db::name('SystemConfig')->select() as $vo) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user