1
This commit is contained in:
parent
64751ab6dc
commit
60871bca56
@ -705,8 +705,9 @@ class UserController extends BaseAuthedController {
|
||||
return;
|
||||
}
|
||||
$temp = explode('|',$heroMeta['normal_gift']);
|
||||
$headList = array();
|
||||
if ($heroMeta['normal_gift']){
|
||||
$userInfo = $this->_getOrmUserInfo();
|
||||
$headList = emptyReplace(json_decode($userInfo['head_list'], true), array());
|
||||
if ($heroMeta['normal_gift'] && !in_array($heroMeta['normal_gift'],$headList)){
|
||||
array_push($headList,$heroMeta['normal_gift']);
|
||||
}
|
||||
Hero::addHero($heroMeta);
|
||||
|
@ -869,15 +869,15 @@ class MissionService extends BaseService {
|
||||
'item_num' => $boost_ceg
|
||||
)
|
||||
));
|
||||
// $dropMeta = mt\Drop::get($missionMeta['reward']);
|
||||
// if (!$dropMeta) {
|
||||
// myself()->_rspErr(10, 'server internal error:' . $missionMeta['reward']);
|
||||
// return;
|
||||
// }
|
||||
// myself()->_scatterDrop('mission:' . $missionId,
|
||||
// $dropMeta,
|
||||
// $awardService,
|
||||
// $propertyChgService);
|
||||
$dropMeta = mt\Drop::get($missionMeta['reward']);
|
||||
if (!$dropMeta) {
|
||||
myself()->_rspErr(10, 'server internal error:' . $missionMeta['reward']);
|
||||
return;
|
||||
}
|
||||
myself()->_scatterDrop('mission:' . $missionId,
|
||||
$dropMeta,
|
||||
$awardService,
|
||||
$propertyChgService);
|
||||
$this->receiveOfferRewardMission($missionId,
|
||||
$awardService,
|
||||
$propertyChgService);
|
||||
|
Loading…
x
Reference in New Issue
Block a user