From a5fdcce98496a4cffc5b635f3478f7b636c29a58 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 14 Jun 2022 17:41:35 +0800 Subject: [PATCH] 1 --- webapp/controller/HeroController.class.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/webapp/controller/HeroController.class.php b/webapp/controller/HeroController.class.php index a2b7c31d..a0535530 100644 --- a/webapp/controller/HeroController.class.php +++ b/webapp/controller/HeroController.class.php @@ -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); }