From ecf70653157657b0f4b7fff3a62824611a4fadac Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 13 Jun 2022 11:37:00 +0800 Subject: [PATCH] 1 --- webapp/controller/HeroController.class.php | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/webapp/controller/HeroController.class.php b/webapp/controller/HeroController.class.php index 1d0dd691..522aac6e 100644 --- a/webapp/controller/HeroController.class.php +++ b/webapp/controller/HeroController.class.php @@ -234,13 +234,17 @@ class HeroController extends BaseAuthedController { return; } $this->_decItems($costItems); - error_log(json_encode( - array( - 'slotId' => $slotId, - 'heroIdx' => $heroDb['idx'] - ) - )); $this->_setV(TN_HERO_LEVEL_UP, (int)$slotId, (int)$heroDb['idx']); + { + Hero::update( + $heroUniId, + array( + 'hero_lv' => $heroDb['hero_lv'] + 1, + 'lock_type' => Hero::LEVEL_LOCK, + 'unlock_time' => $this->_getNowTime() + $currLevelMeta['time'], + ) + ); + } $propertyChgService = new services\PropertyChgService(); $propertyChgService->addHeroChg(); $propertyChgService->addBagChg();