From 02077e884ab44d8082184c0c77a31bd7ca28fb0b Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 13 Jun 2022 19:37:43 +0800 Subject: [PATCH] 1 --- webapp/controller/HeroController.class.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/webapp/controller/HeroController.class.php b/webapp/controller/HeroController.class.php index def5585d..3b16fb7c 100644 --- a/webapp/controller/HeroController.class.php +++ b/webapp/controller/HeroController.class.php @@ -169,6 +169,13 @@ class HeroController extends BaseAuthedController { $propertyChgService->addHeroChg(); $propertyChgService->addBagChg(); $propertyChgService->addUserChg(); + Hero::update($heroUniId, + array( + 'hero_lv' => $heroDb['hero_lv'] + 1, + 'lock_type' => 0, + 'unlock_time' => 0, + ) + ); $rankActivityService = new services\RankActivityService(); $rankActivityService->heroUpgradeLevel($heroDb['hero_lv'] + 1); $this->_rspData(array( @@ -197,6 +204,13 @@ class HeroController extends BaseAuthedController { $propertyChgService->addHeroChg(); $propertyChgService->addBagChg(); $propertyChgService->addUserChg(); + Hero::update($heroUniId, + array( + 'quality' => $heroDb['quality'] + 1, + 'lock_type' => 0, + 'unlock_time' => 0, + ) + ); $rankActivityService = new services\RankActivityService(); $rankActivityService->heroUpgradeLevel($heroDb['quality'] + 1); $this->_rspData(array(