From a8c969027b7b9571187856b2ebba0ec4a16c6ad9 Mon Sep 17 00:00:00 2001 From: hujiabin <519660157@qq.com> Date: Fri, 9 Aug 2024 11:23:01 +0800 Subject: [PATCH] 1 --- webapp/controller/RankingController.class.php | 1 + webapp/controller/UserController.class.php | 4 ++++ 2 files changed, 5 insertions(+) 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']);