diff --git a/doc/Hero.py b/doc/Hero.py index e2d14876..17e16849 100644 --- a/doc/Hero.py +++ b/doc/Hero.py @@ -104,6 +104,22 @@ class Hero(object): ['property_chg', _common.PropertyChg(), '属性变更'], ] }, + { + 'name': 'upgradeQualityPreview', + 'desc': '升阶', + 'group': 'Hero', + 'url': 'webapp/index.php?c=Hero&a=upgradeQualityPreview', + 'params': [ + _common.ReqHead(), + ['hero_uniid', 0, '英雄唯一id'], + ['cost_hero_uniid', 0, '耗材英雄唯一id'], + ], + 'response': [ + _common.RspHead(), + ['old_hero', _common.Hero(), '英雄-老'], + ['new_hero', _common.Hero(), '英雄-新'], + ] + }, { 'name': 'getUpgradeQualityList', 'desc': '获取升阶中的英雄列表', diff --git a/webapp/controller/HeroController.class.php b/webapp/controller/HeroController.class.php index b40fbdc2..653d1cc9 100644 --- a/webapp/controller/HeroController.class.php +++ b/webapp/controller/HeroController.class.php @@ -508,4 +508,10 @@ class HeroController extends BaseAuthedController { )); } + public function upgradeQualityPreview() + { + $heroUniId = getReqVal('hero_uniid', 0); + $heroDb = Hero::find($heroUniId); + } + }