From 9997b30cd4e6ad82c5f025c55787c33b0dec281a Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 11 May 2020 21:19:13 +0800 Subject: [PATCH] 1 --- webapp/controller/RoleController.class.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/webapp/controller/RoleController.class.php b/webapp/controller/RoleController.class.php index c8024b5..3d4e040 100644 --- a/webapp/controller/RoleController.class.php +++ b/webapp/controller/RoleController.class.php @@ -199,13 +199,13 @@ class RoleController{ } $nowTime = phpcommon\getdayseconds(time()); $daily_first_login = $row['daily_first_login']; - if ($row['daily_time'] == 0 || ($nowTime - phpcommon\getdayseconds($row['daily_time']) > 0)) { + if ($row['update_time'] == 0 || ($nowTime - phpcommon\getdayseconds($row['update_time']) > 0)) { $ret = $conn->execScript('UPDATE user SET daily_first_login=0, ' . - 'modify_time=:modify_time WHERE accountid=:accountid;', - array( - ':accountid' => $account_id, - ':modify_time' => time(), - )); + 'modify_time=:modify_time WHERE accountid=:accountid;', + array( + ':accountid' => $account_id, + ':modify_time' => time(), + )); if (!$ret) { die(); return;