From b3ec1315165e3e51993eba503d55e91ae1d11b0d Mon Sep 17 00:00:00 2001 From: xurongyao Date: Wed, 12 Sep 2018 14:35:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E8=8F=9C=E5=8D=95conut=20?= =?UTF-8?q?=E5=87=BD=E6=95=B0=E6=8A=A5=E9=94=99=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/wechat/Reply.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/admin/controller/wechat/Reply.php b/application/admin/controller/wechat/Reply.php index 7c8a1a62..e5151fdc 100644 --- a/application/admin/controller/wechat/Reply.php +++ b/application/admin/controller/wechat/Reply.php @@ -21,7 +21,7 @@ class Reply extends AuthController if(empty(input('key'))) return $this->failed('请输入参数key'); if(empty(input('title'))) return $this->failed('请输入参数title'); $replay = WechatReply::where('key',input('key'))->find(); - $replay_arr =count($replay) ? $replay->toArray() : []; + $replay_arr =!empty($replay) ? $replay->toArray() : []; $replay_arr['data'] = json_decode(isset($replay_arr['data']) ? $replay_arr['data'] : '',true); $this->assign('replay_arr',json_encode($replay_arr)); $this->assign('key',input('key'));