1
This commit is contained in:
parent
439fe9349c
commit
84b0233731
@ -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(
|
||||
|
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user