This commit is contained in:
aozhiwei 2022-06-14 16:39:24 +08:00
parent 33edd46334
commit 357354de18

View File

@ -536,6 +536,14 @@ class HeroController extends BaseAuthedController {
$this->_rspErr(5, "It's already the highest level2");
return;
}
$newHeroDb = $heroDb;
$newHeroDb['quality'] += 1;
$heroDto = Hero::toDto($heroDb);
$newHeroDto = Hero::toDto($newHeroDb);
$this->_rspData(array(
'old_hero' => $heroDto,
'new_hero' => $newHeroDto
));
}
}