From 24d01a21565417304c516593f6401ba4f407785f Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 21 Apr 2019 03:04:08 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/j_msg_get_recent.php | 2 +- src/sammo/Session.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hwe/j_msg_get_recent.php b/hwe/j_msg_get_recent.php index 9a22adab..04d0faf8 100644 --- a/hwe/j_msg_get_recent.php +++ b/hwe/j_msg_get_recent.php @@ -28,7 +28,7 @@ if(count($lastMsgGet) >= 10){ $lastMsgGet = []; } } -$lastMsgGet[] = $now; +$lastMsgGet[] = TimeUtil::now(); $session->lastMsgGet = Json::encode($lastMsgGet); if($delayTime){ diff --git a/src/sammo/Session.php b/src/sammo/Session.php index 56b7661e..0a641b6d 100644 --- a/src/sammo/Session.php +++ b/src/sammo/Session.php @@ -204,6 +204,7 @@ class Session $this->set('acl', null); $this->set('reqOTP', null); $this->set('time', time()); + $this->set('lastMsgGet', null); return $this; }