fixed bug

This commit is contained in:
JaguarJack 2020-04-21 21:16:04 +08:00
parent 129582a446
commit 3d65d111ee

View File

@ -112,13 +112,13 @@ class Config extends CatchModel
} }
} else { } else {
if (!is_array($value)) { if (!is_array($value)) {
parent::storeBy([ parent::createBy([
'pid' => $pid, 'pid' => $pid,
'key' => $key, 'key' => $key,
'value' => $value, 'value' => $value,
]); ]);
} else { } else {
$id = parent::storeBy([ $id = parent::createBy([
'pid' => $pid, 'pid' => $pid,
'key' => $key, 'key' => $key,
]); ]);