This commit is contained in:
hujiabin 2023-03-30 19:50:01 +08:00
parent a93f8e9fdb
commit f0380ec20a

View File

@ -96,7 +96,7 @@ class User extends BaseModel {
public static function info($row)
{
mt\LevelUp::getExpByLv($row['level'],$row['exp']);
$heroDb = Hero::find($row['hero_id']);
$heroDb = Hero::findByAccountId($row['account_id'],$row['hero_id']);
if ($heroDb){
$heroId = $heroDb['hero_id'];
}else{