diff --git a/webapp/controller/KefuController.class.php b/webapp/controller/KefuController.class.php index 8e1ff88..b5f69ea 100644 --- a/webapp/controller/KefuController.class.php +++ b/webapp/controller/KefuController.class.php @@ -28,12 +28,6 @@ class KefuController { return $conn; } - private function getDaySeconds($time_val, $incdays) - { - $time_zone = 8; - return int(($time_val + $time_zone * 3600)/3600/24 + $incdays) * 3600 * 24 - 3600 * $time_zone; - } - private function translateAttachments($config) { $attachments = ''; @@ -283,7 +277,7 @@ class KefuController { array( ':accountid' => $accountid, )); - if ($row && time() - $row['awardtime'] < 3600 * 24) { + if ($row && date("y-m-d", time()) == date("y-m-d", $row['awardtime'])) { $this->sendKefuMsg($accountid, array ( "touser" => $openid, "msgtype" => "text",