From 68b1bc68e5e044452148f62184cee8023b008cf4 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 29 Jan 2019 15:09:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E4=B8=BA=E5=BD=93=E5=A4=A9=E5=8F=AA?= =?UTF-8?q?=E8=83=BD=E9=A2=86=E5=8F=96=E4=B8=80=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webapp/controller/KefuController.class.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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",