1
This commit is contained in:
parent
815d3c9340
commit
399b7612e1
@ -666,6 +666,19 @@ class MissionService extends BaseService {
|
||||
$this->_rspErr(1, 'mission_id parameter error2');
|
||||
return;
|
||||
}
|
||||
$missionMeta = mt\Task::get($missionId);
|
||||
if (!$missionMeta) {
|
||||
$this->_rspErr(1, 'mission_id parameter error2');
|
||||
return;
|
||||
}
|
||||
if ($this->_getItemCount(V_ITEM_DIAMOND, $this->userInfo) < $missionMeta['boost']){
|
||||
$this->_rspErr(2, 'diamond not enough');
|
||||
return;
|
||||
}
|
||||
$this->_decItems(array(
|
||||
'item_id' => V_ITEM_DIAMOND,
|
||||
'item_num' => $missionMeta['boost']
|
||||
));
|
||||
$this->saveOfferRewardMission();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user