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();