From 357354de18e90bddc861b09cd8c9d79ef377befc Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 14 Jun 2022 16:39:24 +0800 Subject: [PATCH] 1 --- webapp/controller/HeroController.class.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/webapp/controller/HeroController.class.php b/webapp/controller/HeroController.class.php index 1f62578d..fa8bea5a 100644 --- a/webapp/controller/HeroController.class.php +++ b/webapp/controller/HeroController.class.php @@ -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 + )); } }