From c060a3806ab728710ce5e1c61a8876194f67a24d Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 2 Dec 2021 13:30:00 +0800 Subject: [PATCH] 1 --- webapp/controller/GunController.class.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/webapp/controller/GunController.class.php b/webapp/controller/GunController.class.php index 6d0e5032..4b977c5c 100644 --- a/webapp/controller/GunController.class.php +++ b/webapp/controller/GunController.class.php @@ -56,17 +56,8 @@ class GunController extends BaseAuthedController { { $talentId = getReqVal('talent_id', 0); - /*$talentMeta = mt\GunTalent::get($talentId); - if (!$talentMeta) { - $this->_rspErr(1, 'type_id参数错误'); - return; - } - if (!mt\GunTalent::isValidTalent($talentMeta, $talentId)) { - $this->_rspErr(1, 'talent_id参数错误'); - return; - }*/ $talentDb = GunTalent::find($talentId); - $currLv = isset($talentDb) ? $talentDb['talent_lv'] : 0; + $currLv = isset($talentDb) ? $talentDb['talent_lv'] : 1; $growMeta = mt\GunTalentGrow::getByIdLv($talentId, $currLv + 1); if (!$growMeta) { $this->_rspErr(2, '已满级');