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 {
if (!is_array($value)) {
parent::storeBy([
parent::createBy([
'pid' => $pid,
'key' => $key,
'value' => $value,
]);
} else {
$id = parent::storeBy([
$id = parent::createBy([
'pid' => $pid,
'key' => $key,
]);