From d7b3e76489cfd940a88a6b74332fe7d0c41fb84b Mon Sep 17 00:00:00 2001 From: wangwei01 Date: Fri, 10 May 2019 14:55:15 +0800 Subject: [PATCH] 1 --- webapp/bootstrap/init.php | 4 ++-- webapp/controller/RoleController.class.php | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/webapp/bootstrap/init.php b/webapp/bootstrap/init.php index ed759fc..b7f66fc 100644 --- a/webapp/bootstrap/init.php +++ b/webapp/bootstrap/init.php @@ -25,8 +25,8 @@ define('QUEST_SUM_FIGHT', 72003); define('QUEST_SUM_SUPPLY', 72004); define('QUEST_SUM_EQUIPMAX', 72005); define('QUEST_SUM_TEAM', 72006); -define('QUEST_SUM_TEAMWIM', 72007); -define('QUEST_SUM_FRITEAMWIN', 72008); +define('QUEST_SUM_WIM', 72007); +define('QUEST_SUM_TEAMWIN', 72008); define('QUEST_SUM_ALIVE', 72009); define('QUEST_SUM_HARM', 72010); define('QUEST_SUM_KILL', 72011); diff --git a/webapp/controller/RoleController.class.php b/webapp/controller/RoleController.class.php index 45a05a7..1fbe63a 100644 --- a/webapp/controller/RoleController.class.php +++ b/webapp/controller/RoleController.class.php @@ -202,17 +202,17 @@ class RoleController{ $quest->triggerQuest(QUEST_SUM_RIFLEKILL, 2, $rifle_kill, $account_id); $quest->triggerQuest(QUEST_SUM_PISTOLKILL, 2, $pistol_kill, $account_id); $quest->triggerQuest(QUEST_SUM_SUBMACKILL, 2, $submachine_kill, $account_id); - if ($team_status != 0 && $rank <= 5) { + if ($team_status == 1 && $rank <= 5) { $quest->triggerQuest(QUEST_DAY_RANK, 1, 1, $account_id); } - if ($team_status == 1 && $rank == 1) { - $quest->triggerQuest(QUEST_SUM_TEAMWIM, 2, 1, $account_id); + if ($team_status == 0 && $rank == 1) { + $quest->triggerQuest(QUEST_SUM_WIM, 2, 1, $account_id); } - if ($team_status == 2) { + if ($team_status == 1) { $quest->triggerQuest(QUEST_DAY_TEAM, 1, 1, $account_id); $quest->triggerQuest(QUEST_SUM_TEAM, 2, 1, $account_id); if ($rank == 1) { - $quest->triggerQuest(QUEST_SUM_FRITEAMWIN, 2, 1, $account_id); + $quest->triggerQuest(QUEST_SUM_TEAMWIN, 2, 1, $account_id); } } echo json_encode(array(