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);