This commit is contained in:
hujiabin 2024-04-26 15:57:12 +08:00
parent 439fe9349c
commit 84b0233731
2 changed files with 4 additions and 1 deletions

View File

@ -129,7 +129,7 @@ class RankingController extends BaseAuthedController {
if ($heroDb){
$heroItemId = $heroDb['hero_id'];
$skinDb = HeroSkin::findByAccountId($row['account_id'],$heroItemId);
$hero_skin = $skinDb['skin_id'];
$hero_skin = $skinDb ? $skinDb['skin_id']:0;
}
$info = array(

View File

@ -67,6 +67,9 @@ class ChipPage extends BaseModel
}
public static function toDtoBattle($row){
if (!$row){
return $row;
}
$data = emptyReplace(json_decode($row['data'], true), array());
if ($data){
foreach ($data as &$value){