This commit is contained in:
hujiabin 2024-08-09 11:23:01 +08:00
parent 412ed6ec93
commit a8c969027b
2 changed files with 5 additions and 0 deletions

View File

@ -138,6 +138,7 @@ class RankingController extends BaseAuthedController {
'head_id' => $row['head_id'],
'head_frame' => $row['head_frame'],
'hero_skin' => $hero_skin,
'hero_id' => $row['hero_id'],
);
}else{
$info = array();

View File

@ -924,6 +924,10 @@ class UserController extends BaseAuthedController {
return;
}
$userInfo = $this->_getOrmUserInfo();
if ($userInfo['is_gain_item']){
$this->_rspErr(1, 'Have already received');
return;
}
$headList = emptyReplace(json_decode($userInfo['head_list'], true), array());
if ($heroMeta['hero_head'] && !in_array($heroMeta['hero_head'],$headList)){
array_push($headList,$heroMeta['hero_head']);