From 22a8574824bc4f65c4f7df8973e7e92e4b59c01f Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Wed, 20 Jan 2021 19:53:19 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=E7=A9=BA=E5=80=BC=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- catch/system/model/Config.php | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/catch/system/model/Config.php b/catch/system/model/Config.php index f42862d..5aed7c2 100644 --- a/catch/system/model/Config.php +++ b/catch/system/model/Config.php @@ -66,15 +66,13 @@ class Config extends CatchModel $config = []; foreach ($data as $key => $item) { foreach ($item as $k => $value) { - if ($value) { - $config[$key . '.' .$k] = [ - 'pid' => $parentConfig['id'], - 'key' => $key . '.' . $k, - 'value' => $value, - 'created_at' => time(), - 'updated_at' => time(), - ]; - } + $config[$key . '.' .$k] = [ + 'pid' => $parentConfig['id'], + 'key' => $key . '.' . $k, + 'value' => $value, + 'created_at' => time(), + 'updated_at' => time(), + ]; } }