diff --git a/webapp/controller/HeroController.class.php b/webapp/controller/HeroController.class.php index bdbf61e1..99993391 100644 --- a/webapp/controller/HeroController.class.php +++ b/webapp/controller/HeroController.class.php @@ -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()