From dea1895804d9d29f65dd86b1348e417891c547e8 Mon Sep 17 00:00:00 2001 From: hujiabin <519660157@qq.com> Date: Mon, 28 Oct 2024 17:02:31 +0800 Subject: [PATCH] 1 --- doc/OutAppCircuit.py | 52 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/doc/OutAppCircuit.py b/doc/OutAppCircuit.py index e3baac01..2a330bf4 100644 --- a/doc/OutAppCircuit.py +++ b/doc/OutAppCircuit.py @@ -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(个人榜信息才有)'], ] \ No newline at end of file