From 502f6985968912713355ef3c4c5e454b0444dcf1 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 18 Sep 2020 19:10:31 +0800 Subject: [PATCH] 1 --- webapp/controller/SignController.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/webapp/controller/SignController.class.php b/webapp/controller/SignController.class.php index 5cca584..ee8cae0 100644 --- a/webapp/controller/SignController.class.php +++ b/webapp/controller/SignController.class.php @@ -165,11 +165,13 @@ class SignController{ $quest = new classes\Quest(); $quest->triggerQuest(QUEST_DAY_LOGIN, 1, 1, $account_id); } else { - $last_sign_time = 0; + $last_sign_time = $rows[0]['sign_time']; $flag = 0; foreach ($rows as $row) { if ($row['sign_id'] > $last_sign_id) { - $last_sign_time = $row['sign_time']; + if ($last_sign_time >= $row['sign_time']) { + $last_sign_time = $row['sign_time']; + } $last_sign_id = $row['sign_id']; } if ($row['signable'] != 1) {