diff --git a/webapp/controller/RankingController.class.php b/webapp/controller/RankingController.class.php index 654547c1..cf0bce6e 100644 --- a/webapp/controller/RankingController.class.php +++ b/webapp/controller/RankingController.class.php @@ -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(); diff --git a/webapp/controller/UserController.class.php b/webapp/controller/UserController.class.php index 58709155..174808ae 100644 --- a/webapp/controller/UserController.class.php +++ b/webapp/controller/UserController.class.php @@ -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']);