1
This commit is contained in:
parent
ea69127139
commit
8f019f5964
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user