1
This commit is contained in:
parent
123e74b51d
commit
cf3b270c20
@ -209,32 +209,6 @@ class HeroController extends BaseAuthedController {
|
||||
}
|
||||
break;
|
||||
}
|
||||
/*
|
||||
$baseAttrs = mt\Hero::getHeroAttr($heroMeta);
|
||||
mt\AttrHelper::mergeAttr($baseAttrs, Bag::getAttrs());
|
||||
$attrs = emptyReplace(json_decode($heroDb['rand_attr'], true), array());
|
||||
$ret = mt\HeroLevel::addRandAttr($nextLevelMeta, $baseAttrs, $attrs);
|
||||
if (!$ret) {
|
||||
$this->_rspErr(2, 'server internal error');
|
||||
return;
|
||||
}
|
||||
Hero::update($heroUniId,
|
||||
array(
|
||||
'hero_lv' => $heroDb['hero_lv'] + 1,
|
||||
'rand_attr' => json_encode($attrs),
|
||||
'lock_type' => Hero::LEVEL_LOCK,
|
||||
'unlock_time' => $this->_getNowTime() + $currLevelMeta['time'],
|
||||
'unlock_trade_time' => $this->_getNowTime() + $currLevelMeta['time'] + mt\Parameter::getVal('hero_lock_transaction_time', 0)
|
||||
)
|
||||
);
|
||||
$rankActivityService = new service\RankActivityService();
|
||||
$rankActivityService->heroUpgradeLevel($heroDb['hero_lv'] + 1);
|
||||
$propertyChgService = new services\PropertyChgService();
|
||||
$propertyChgService->addHeroChg();
|
||||
$this->_rspData(array(
|
||||
'property_chg' => $propertyChgService->toDto(),
|
||||
));
|
||||
*/
|
||||
}
|
||||
|
||||
public function upgradeLevel()
|
||||
|
Loading…
x
Reference in New Issue
Block a user