From 4fe4bb08fb533326643cb35d722bfcbab360ece1 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 13 Jun 2022 10:45:36 +0800 Subject: [PATCH] 1 --- webapp/controller/HeroController.class.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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()