This commit is contained in:
aozhiwei 2022-06-13 11:37:00 +08:00
parent 4fe4bb08fb
commit ecf7065315

View File

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