From 9c8152c69956135598d736efa534be8faedab250 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 10 Jun 2022 16:34:57 +0800 Subject: [PATCH] 1 --- doc/Hero.py | 2 +- webapp/controller/HeroController.class.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/Hero.py b/doc/Hero.py index 42d9d9fb..ee5ab762 100644 --- a/doc/Hero.py +++ b/doc/Hero.py @@ -97,7 +97,7 @@ class Hero(object): _common.ReqHead(), ['hero_uniid', 0, '英雄唯一id'], ['slot_id', 0, '槽id(0-1)'], - ['cost_item_id', 0, '支付方式'], + ['cost_hero_uniid', 0, '耗材英雄唯一id'], ], 'response': [ _common.RspHead(), diff --git a/webapp/controller/HeroController.class.php b/webapp/controller/HeroController.class.php index a8e56a3a..ad14bf06 100644 --- a/webapp/controller/HeroController.class.php +++ b/webapp/controller/HeroController.class.php @@ -127,6 +127,7 @@ class HeroController extends BaseAuthedController { { $costItemId = getReqVal('cost_item_id', 0); $heroUniId = getReqVal('hero_uniid', 0); + $slotId = getReqVal('slot_id', 0); $heroDb = Hero::find($heroUniId); if (!$heroDb) { $this->_rspErr(1, 'hero does not exist'); @@ -194,7 +195,7 @@ class HeroController extends BaseAuthedController { return; } $this->_decItems($costItems); - $this->_setV(TN_HERO_LEVEL_UP); + $this->_setV(TN_HERO_LEVEL_UP, $slotId, $heroDb['idx']); } public function upgradeQuality()