1
This commit is contained in:
parent
c61c0a6628
commit
a97f6469fa
@ -121,26 +121,24 @@ class Battle(object):
|
|||||||
],
|
],
|
||||||
'response': [
|
'response': [
|
||||||
_common.RspHead(),
|
_common.RspHead(),
|
||||||
|
_common.BattleData(),
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'desc': '获取战斗数据(客户端不用处理)getCustomBattleData',
|
||||||
|
'group': 'Battle',
|
||||||
|
'url': 'webapp/index.php?c=Battle&a=getCustomBattleData',
|
||||||
|
'params': [
|
||||||
|
_common.ReqHead(),
|
||||||
['account_id', '', 'account_id'],
|
['account_id', '', 'account_id'],
|
||||||
['session_id', '', 'session_id'],
|
['session_id', '', 'session_id'],
|
||||||
['battle_uuid', '', 'battle_uuid'],
|
['battle_uuid', '', 'battle_uuid'],
|
||||||
['match_mode',0,'0:匹配 1:排位 2:pve'],
|
],
|
||||||
['rank', 0, '当前段位'],
|
'response': [
|
||||||
['name','','用户名字'],
|
_common.RspHead(),
|
||||||
['level',0,'用户等级'],
|
['sign', '', '签名'],
|
||||||
['revive_coin',0,'复活币'],
|
['room_uuid', '', '房间id'],
|
||||||
['hero_uniid',0,'英雄 uniid'],
|
['!team_list', _common.BattleTeam(), '队伍数据'],
|
||||||
['hero_id',0,'英雄 item id'],
|
|
||||||
['weapon_uuid1',0,'武器1 uniid'],
|
|
||||||
['weapon_uuid2',0,'武器2 uniid'],
|
|
||||||
['parachute',0,'降落伞 item id'],
|
|
||||||
['hero_skin',0,'英雄皮肤 item id'],
|
|
||||||
['skill_id',0,'备战技能 item id'],
|
|
||||||
['battle_times',0,'战斗次数'],
|
|
||||||
['chip_page',_common.Attr(),'铭文页属性'],
|
|
||||||
['hero_dto','','英雄详情'],
|
|
||||||
['weapon_dto1','','武器1详情'],
|
|
||||||
['weapon_dto2','','武器2详情'],
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1466,3 +1466,37 @@ class StakingPreview(object):
|
|||||||
['time', 0, '天数'],
|
['time', 0, '天数'],
|
||||||
['interest', 0, '利息'],
|
['interest', 0, '利息'],
|
||||||
]
|
]
|
||||||
|
|
||||||
|
class BattleData(object):
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
self.fields = [
|
||||||
|
['account_id','','account_id'],
|
||||||
|
['session_id','','session_id'],
|
||||||
|
['battle_uuid','','battle_uuid'],
|
||||||
|
['match_mode',0,'0:匹配 1:排位 2:pve'],
|
||||||
|
['rank', 0, '当前段位'],
|
||||||
|
['name','','用户名字'],
|
||||||
|
['level',0,'用户等级'],
|
||||||
|
['revive_coin',0,'复活币'],
|
||||||
|
['hero_uniid',0,'英雄 uniid'],
|
||||||
|
['hero_id',0,'英雄 item id'],
|
||||||
|
['weapon_uuid1',0,'武器1 uniid'],
|
||||||
|
['weapon_uuid2',0,'武器2 uniid'],
|
||||||
|
['parachute',0,'降落伞 item id'],
|
||||||
|
['hero_skin',0,'英雄皮肤 item id'],
|
||||||
|
['skill_id',0,'备战技能 item id'],
|
||||||
|
['battle_times',0,'战斗次数'],
|
||||||
|
['chip_page',_common.Attr(),'铭文页属性'],
|
||||||
|
['hero_dto','','英雄详情'],
|
||||||
|
['weapon_dto1','','武器1详情'],
|
||||||
|
['weapon_dto2','','武器2详情'],
|
||||||
|
]
|
||||||
|
|
||||||
|
class BattleTeam(object):
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
self.fields = [
|
||||||
|
['team_uuid','','队伍唯一id'],
|
||||||
|
['!members', _common.BattleData(), '成员数据'],
|
||||||
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user