This commit is contained in:
aozhiwei 2022-06-13 10:45:36 +08:00
parent edfc0bc88f
commit 4fe4bb08fb

View File

@ -234,7 +234,20 @@ class HeroController extends BaseAuthedController {
return; return;
} }
$this->_decItems($costItems); $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() public function upgradeQuality()