This commit is contained in:
hujiabin 2022-09-20 10:23:16 +08:00
parent ea69127139
commit 8f019f5964

View File

@ -106,7 +106,12 @@ class Chip extends BaseModel
$heroDb = $hero;
}
});
return $heroDb['hero_id'];
if($heroDb){
return $heroDb['hero_id'];
}else{
return 0;
}
}
if ($row['chip_type'] == 2){
$gunDb = array();
@ -115,7 +120,11 @@ class Chip extends BaseModel
$gunDb = $gun;
}
});
return $gunDb['gun_id'];
if($gunDb){
return $gunDb['gun_id'];
}else{
return 0;
}
}
}