From 00714a82399a5ecc61cfd0affce2bbc4947697ee Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 28 Feb 2022 19:32:02 +0800 Subject: [PATCH] 1 --- webapp/services/MissionService.php | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/webapp/services/MissionService.php b/webapp/services/MissionService.php index 9dfa46a8..9c4e30c8 100644 --- a/webapp/services/MissionService.php +++ b/webapp/services/MissionService.php @@ -610,12 +610,34 @@ class MissionService extends BaseService { $this->_rspErr(1, 'mission_id parameter error'); return; } - $missions = $this->getOfferRewardMissions(); - foreach ($missions as $mission) { - if ($mission['mission_id'] == $missionId) { - return; + $objects = explode('|', getReqVal('mission_id', 0)); + foreach ($objects as $val) { + $strings = explode(':', $val); + $type = $strings[0]; + $id = $strings[1]; + switch ($type) { + case 0: + { + } + break; + case 1: + { + + } + break; } } } + private function getOfferRewardMissionById($missionId) + { + $missions = $this->getOfferRewardMissions(); + foreach ($missions as $mission) { + if ($mission['mission_id'] == $missionId) { + return $mission; + } + } + return null; + } + }