From b74526c112da856c413a52eea3a2d593361ae38e Mon Sep 17 00:00:00 2001 From: hujiabin <519660157@qq.com> Date: Thu, 18 May 2023 19:09:31 +0800 Subject: [PATCH] 1 --- webapp/controller/RankingController.class.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/webapp/controller/RankingController.class.php b/webapp/controller/RankingController.class.php index 6192b1e9..e1ea772a 100644 --- a/webapp/controller/RankingController.class.php +++ b/webapp/controller/RankingController.class.php @@ -98,15 +98,15 @@ class RankingController extends BaseAuthedController { if ($row){ $hero_skin = 0; - if ($row['account_id'] == myself()->_getAccountId()){ - $heroDb = Hero::find($row['hero_id']); - if ($heroDb){ - $heroItemId = $heroDb['hero_id']; - $skinDb = HeroSkin::findBx($heroItemId); - $hero_skin = $skinDb['skin_id']; - } + $heroDb = Hero::find($row['hero_id']); + + if ($heroDb){ + $heroItemId = $heroDb['hero_id']; + $skinDb = HeroSkin::findBx($heroItemId); + $hero_skin = $skinDb['skin_id']; } + $info = array( 'account_id' => $row['account_id'], 'address' => phpcommon\extractOpenId($row['account_id']),