This commit is contained in:
hujiabin 2022-10-28 16:30:40 +08:00
parent 64751ab6dc
commit 60871bca56
2 changed files with 12 additions and 11 deletions

View File

@ -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);

View File

@ -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);