1
This commit is contained in:
parent
7f212f1c4c
commit
77c41fbd1b
41
doc/Hero.py
41
doc/Hero.py
@ -74,6 +74,19 @@ class Hero(object):
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'getUpgradeLevelList',
|
||||
'desc': '获取升级中的英雄列表',
|
||||
'group': 'Hero',
|
||||
'url': 'webapp/index.php?c=Hero&a=getUpgradeLevelList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!infos', [_common.LevelingHero()], '升级中的英雄列表'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'upgradeQuality',
|
||||
'desc': '升阶',
|
||||
@ -89,4 +102,32 @@ class Hero(object):
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'getUpgradeQualityList',
|
||||
'desc': '获取升阶中的英雄列表',
|
||||
'group': 'Hero',
|
||||
'url': 'webapp/index.php?c=Hero&a=getUpgradeQualityList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!infos', [_common.QualityingHero()], '升阶中的英雄列表'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'receive',
|
||||
'desc': '领取升级/升阶英雄',
|
||||
'group': 'Hero',
|
||||
'url': 'webapp/index.php?c=Hero&a=receive',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['hero_uniid', 0, '英雄唯一id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['old_hero', _common.Hero(), '英雄-老'],
|
||||
['new_hero', _common.Hero(), '英雄-新'],
|
||||
]
|
||||
},
|
||||
]
|
||||
|
@ -226,6 +226,22 @@ class Hero(object):
|
||||
['unlock_trade_time', 0, '出售解锁utc时间(升级或者升阶完成后触发),只锁交易,其他的操作仍可进行,和lock_type无关是独立的锁!!!'],
|
||||
]
|
||||
|
||||
class LevelingHero(object):
|
||||
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['info', Hero(), '英雄信息'],
|
||||
['countdown', 0, '倒计时'],
|
||||
]
|
||||
|
||||
class QualityingHero(object):
|
||||
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['info', Hero(), '英雄信息'],
|
||||
['countdown', 0, '倒计时'],
|
||||
]
|
||||
|
||||
class HeroSkin(object):
|
||||
|
||||
def __init__(self):
|
||||
|
@ -87,6 +87,14 @@ class HeroController extends BaseAuthedController {
|
||||
$this->_rspOk();
|
||||
}
|
||||
|
||||
public function getUpgradeLevelList()
|
||||
{
|
||||
}
|
||||
|
||||
public function getUpgradeQualityList()
|
||||
{
|
||||
}
|
||||
|
||||
public function upgradeLevel()
|
||||
{
|
||||
$costItemId = getReqVal('cost_item_id', 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user