1
This commit is contained in:
parent
b9e8097a22
commit
6af2fbb2da
@ -212,6 +212,11 @@ class MissionController extends BaseAuthedController {
|
||||
// $specMissionDto['state'] = Mission::RECEIVEABLE_STATE;
|
||||
// array_push($missionDtoList, $missionDto);
|
||||
// }
|
||||
|
||||
if (count($missionDtoList) < 1){
|
||||
$this->_rspErr(1, "There are not rewards");
|
||||
return;
|
||||
}
|
||||
foreach ($missionDtoList as $missionDto) {
|
||||
$missionMeta = mt\Task::get($missionDto['mission_id']);
|
||||
$dropMeta = mt\Drop::get($missionMeta['reward']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user