From f4a1bceab20356f6f5895f4241a64a77ca73974c Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 30 Jan 2019 14:05:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=BF=9B=E5=85=A5=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webapp/controller/KefuController.class.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/webapp/controller/KefuController.class.php b/webapp/controller/KefuController.class.php index 6687799..544d5e0 100644 --- a/webapp/controller/KefuController.class.php +++ b/webapp/controller/KefuController.class.php @@ -265,6 +265,14 @@ class KefuController { array( ':accountid' => $accountid, )); + if (!$row) { + $this->sendKefuMsg($accountid, array ( + "touser" => $openid, + "msgtype" => "text", + "text" => array ("content" => "请从游戏进入客服!") + )); + return; + } date_default_timezone_set('Asia/Shanghai'); if ($row && date("y-m-d", time()) == date("y-m-d", $row['awardtime'])) { $this->sendKefuMsg($accountid, array (