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 (