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; + } + }