fixed:空值配置无法更新
This commit is contained in:
parent
584477f711
commit
22a8574824
@ -66,7 +66,6 @@ class Config extends CatchModel
|
|||||||
$config = [];
|
$config = [];
|
||||||
foreach ($data as $key => $item) {
|
foreach ($data as $key => $item) {
|
||||||
foreach ($item as $k => $value) {
|
foreach ($item as $k => $value) {
|
||||||
if ($value) {
|
|
||||||
$config[$key . '.' .$k] = [
|
$config[$key . '.' .$k] = [
|
||||||
'pid' => $parentConfig['id'],
|
'pid' => $parentConfig['id'],
|
||||||
'key' => $key . '.' . $k,
|
'key' => $key . '.' . $k,
|
||||||
@ -76,7 +75,6 @@ class Config extends CatchModel
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$this->where('pid', $parentConfig->id)
|
$this->where('pid', $parentConfig->id)
|
||||||
->select()
|
->select()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user