From 4b92288a45f98fcf008bf55687fc9ab687f8eb7c Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 13 Jun 2022 19:05:30 +0800 Subject: [PATCH] 1 --- webapp/controller/HeroController.class.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/webapp/controller/HeroController.class.php b/webapp/controller/HeroController.class.php index 99993391..cd8c51d9 100644 --- a/webapp/controller/HeroController.class.php +++ b/webapp/controller/HeroController.class.php @@ -401,20 +401,6 @@ class HeroController extends BaseAuthedController { $this->_rspErr(3, $this->_getLackItemErrMsg($lackItem)); return; } - $baseAttrs = mt\Hero::getHeroAttr($heroMeta); - mt\AttrHelper::mergeAttr($baseAttrs, Bag::getAttrs()); - $attrs = emptyReplace(json_decode($heroDb['rand_attr'], true), array()); - { - $obtainAttrs = mt\HeroQuality::getRandAttr($nextQualityMeta); - mt\AttrHelper::mergeAttr($attrs, $obtainAttrs); - } - { - $ret = mt\HeroLevel::addRandAttr($nextLevelMeta, $baseAttrs, $attrs); - if (!$ret) { - $this->_rspErr(2, 'server internal error'); - return; - } - } $this->_decItems($costItems); Hero::update($heroUniId, array(