This commit is contained in:
aozhiwei 2022-02-23 16:43:01 +08:00
parent 377bd60e68
commit 8df8112584
2 changed files with 31 additions and 23 deletions

View File

@ -79,6 +79,14 @@ class Task {
public static function getCustomTypeMetaList($type, $missionService)
{
$metaList = array();
if ($type == self::OFFER_REWARD_MISSION_CUSTOM_TYPE) {
foreach ($missionService->getOfferRewardMissions() as $missionId) {
$meta = self::get($missionId);
if ($meta) {
array_push($metaList, $meta);
}
}
} else {
foreach (self::getMetaList() as $meta) {
switch ($type) {
case self::DAILY_MISSION_CUSTOM_TYPE:
@ -96,19 +104,13 @@ class Task {
}
}
break;
case self::OFFER_REWARD_MISSION_CUSTOM_TYPE:
{
if ($meta['type'] == self::OFFER_REWARD_MISSON_TYPE) {
array_push($metaList, $meta);
}
}
break;
default:
{
}
break;
}
}
}
return $metaList;
}

View File

@ -505,4 +505,10 @@ class MissionService extends BaseService {
return myself()->_getV($x, $y);
}
public function getOfferRewardMissions()
{
$missions = array();
return $missions;
}
}