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']),