From 0e4159784171e8184d9b52dc5b287deb1a21715a Mon Sep 17 00:00:00 2001 From: wangwei01 Date: Thu, 9 May 2019 13:59:48 +0800 Subject: [PATCH] 1 --- webapp/controller/RoleController.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/controller/RoleController.class.php b/webapp/controller/RoleController.class.php index e9b99e7..5fbe67c 100644 --- a/webapp/controller/RoleController.class.php +++ b/webapp/controller/RoleController.class.php @@ -187,13 +187,13 @@ class RoleController{ //刷新任务 $quest = new classes\Quest(); $quest->triggerQuest(QUEST_DAY_FIGHT, 1, 1, $account_id); - $quest->triggerQuest(QUEST_DAY_ALIVE, 1, $alive_time, $account_id); + $quest->triggerQuest(QUEST_DAY_ALIVE, 1, (int)($alive_time / 1000 / 60), $account_id); $quest->triggerQuest(QUEST_DAY_HARM, 1, $harm, $account_id); $quest->triggerQuest(QUEST_DAY_KILL, 1, $kills, $account_id); $quest->triggerQuest(QUEST_DAY_GAME, 1, 1, $account_id); $quest->triggerQuest(QUEST_DAY_HELP, 1, $rescue_member, $account_id); $quest->triggerQuest(QUEST_SUM_FIGHT, 2, 1, $account_id); - $quest->triggerQuest(QUEST_SUM_ALIVE, 2, $alive_time, $account_id); + $quest->triggerQuest(QUEST_SUM_ALIVE, 2, (int)($alive_time / 1000 / 60), $account_id); $quest->triggerQuest(QUEST_SUM_HARM, 2, $harm, $account_id); $quest->triggerQuest(QUEST_SUM_KILL, 2, $kills, $account_id); $quest->triggerQuest(QUEST_SUM_GAME, 2, 1, $account_id);