This commit is contained in:
hujiabin 2024-10-28 17:02:31 +08:00
parent a81e5a73e3
commit dea1895804

View File

@ -5,6 +5,32 @@ class OutAppTools(object):
def __init__(self):
self.apis = [
{
'name': 'getCircuitRanking',
'desc': '巡回赛赛季排行',
'group': 'OutAppCircuit',
'url': 'webapp/index.php?c=OutAppCircuit&a=getCircuitRanking',
'params': [
['address', '0', 'address'],
],
'response': [
_common.RspHead(),
['!rank_list', [rankingInfo()], ''],
['info', circuitInfo(), '信息'],
]
},{
'name': 'getCircuitPhaseRanking',
'desc': '巡回赛周期排行',
'group': 'OutAppCircuit',
'url': 'webapp/index.php?c=OutAppCircuit&a=getCircuitPhaseRanking',
'params': [
['address', '0', 'address'],
],
'response': [
_common.RspHead(),
['!rank_list', [rankingInfo()], ''],
['info', circuitInfo(), '信息'],
]
},{
'name': 'getCircuitRewardHistory',
'desc': '获取巡回赛奖励记录',
'group': 'OutAppCircuit',
@ -38,4 +64,30 @@ class rewardInfo(object):
['start_time', 0, '阶段开始时间'],
['end_time', 0, '阶段结束时间'],
['reward', 0, '-1:未结算 0:结算无奖励'],
]
class circuitInfo(object):
def __init__(self):
self.fields = [
['start_time', 0, '开始时间'],
['end_time', 0, '结束时间'],
['ranking', 0, '排名'],
['score', 0, '积分'],
]
class rankingInfo(object):
def __init__(self):
self.fields = [
['account_id', 0, 'account'],
['name', 0, '名字'],
['head_id', 0, '头像'],
['head_frame', 0, '头像框'],
['hero_id', 0, '英雄ItemId'],
['skin_id', 0, '皮肤ItemId'],
['ranking', 0, '排名'],
['score', 0, '积分'],
['score_boost', 0, '加成的积分'],
['cec', 0, 'cec(个人榜信息才有)'],
]