添加进入判断

This commit is contained in:
aozhiwei 2019-01-30 14:05:18 +08:00
parent 43ea109ead
commit f4a1bceab2

View File

@ -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 (