This commit is contained in:
hujiabin 2023-05-18 19:09:31 +08:00
parent aac0848eb6
commit b74526c112

View File

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