This commit is contained in:
aozhiwei 2022-06-14 16:31:02 +08:00
parent dc12d512e1
commit 38ac413eaf
2 changed files with 22 additions and 0 deletions

View File

@ -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': '获取升阶中的英雄列表',

View File

@ -508,4 +508,10 @@ class HeroController extends BaseAuthedController {
));
}
public function upgradeQualityPreview()
{
$heroUniId = getReqVal('hero_uniid', 0);
$heroDb = Hero::find($heroUniId);
}
}