From 704dd789eb005adf0ee7ed5ae2d456e9a191ec90 Mon Sep 17 00:00:00 2001 From: tpingzhang <635929049@qq.com> Date: Mon, 25 Nov 2019 10:50:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E9=98=B2=E6=B2=89=E8=BF=B7?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/ToolController.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Application/Admin/Controller/ToolController.class.php b/Application/Admin/Controller/ToolController.class.php index 8620da5a9..ee888c619 100644 --- a/Application/Admin/Controller/ToolController.class.php +++ b/Application/Admin/Controller/ToolController.class.php @@ -342,11 +342,11 @@ class ToolController extends ThinkController { $ageConfigJson = json_encode($config); M('tool', 'tab_')->where([ - 'name' => 'age' + 'name' => $name ])->save([ 'config' => $ageConfigJson, 'type' => 1, - 'status' => $config['status'] + 'status' => $config['status'] ? $config['status'] : $config['bat']; ]); }