diff --git a/webapp/controller/HeroController.class.php b/webapp/controller/HeroController.class.php index f26e06be..1d0dd691 100644 --- a/webapp/controller/HeroController.class.php +++ b/webapp/controller/HeroController.class.php @@ -234,7 +234,20 @@ class HeroController extends BaseAuthedController { return; } $this->_decItems($costItems); - $this->_setV(TN_HERO_LEVEL_UP, $slotId, $heroDb['idx']); + error_log(json_encode( + array( + 'slotId' => $slotId, + 'heroIdx' => $heroDb['idx'] + ) + )); + $this->_setV(TN_HERO_LEVEL_UP, (int)$slotId, (int)$heroDb['idx']); + $propertyChgService = new services\PropertyChgService(); + $propertyChgService->addHeroChg(); + $propertyChgService->addBagChg(); + $propertyChgService->addUserChg(); + $this->_rspData(array( + 'property_chg' => $propertyChgService->toDto(), + )); } public function upgradeQuality()