This commit is contained in:
aozhiwei 2022-06-14 17:41:35 +08:00
parent 8311c08ae1
commit a5fdcce984

View File

@ -186,8 +186,8 @@ class HeroController extends BaseAuthedController {
'unlock_time' => 0,
)
);
$newHero['hero_lv'] += 1;
$newHero['attr'] = $attrs;
$newHeroDb = Hero::find($heroUniId);
$newHeroDto = Hero::toDto($newHeroDb);
$rankActivityService = new services\RankActivityService();
$rankActivityService->heroUpgradeLevel($heroDb['hero_lv'] + 1);
}
@ -249,7 +249,8 @@ class HeroController extends BaseAuthedController {
'unlock_time' => 0,
)
);
$newHero['quality'] += 1;
$newHeroDb = Hero::find($heroUniId);
$newHeroDto = Hero::toDto($newHeroDb);
$rankActivityService = new services\RankActivityService();
$rankActivityService->heroUpgradeLevel($heroDb['quality'] + 1);
}