From 6974ab7abad31d0cf2b78f279ace41046fca1c8f Mon Sep 17 00:00:00 2001 From: tpingzhang <635929049@qq.com> Date: Tue, 3 Dec 2019 17:09:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=89=93=E5=8D=B0=E8=BF=87?= =?UTF-8?q?=E5=A4=9A=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Sdk/Controller/BaseController.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Application/Sdk/Controller/BaseController.class.php b/Application/Sdk/Controller/BaseController.class.php index d91c64cd..c89c199b 100644 --- a/Application/Sdk/Controller/BaseController.class.php +++ b/Application/Sdk/Controller/BaseController.class.php @@ -173,7 +173,8 @@ class BaseController extends RestController{ $config = array(); foreach ($tools as $value) { $config[$value['name']] = json_decode($value['config'], true); - $config[$value['name']]['status'] = $value['status']; + if (is_array($config[$value['name']])) + $config[$value['name']]['status'] = $value['status']; } return $config; }