41 lines
1.2 KiB
Python
41 lines
1.2 KiB
Python
import _common
|
|
|
|
class OutAppTools(object):
|
|
|
|
def __init__(self):
|
|
self.apis = [
|
|
{
|
|
'name': 'getCircuitRewardHistory',
|
|
'desc': '获取巡回赛奖励记录',
|
|
'group': 'OutAppCircuit',
|
|
'url': 'webapp/index.php?c=OutAppCircuit&a=getCircuitRewardHistory',
|
|
'params': [
|
|
['address', '0', 'address'],
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
['!data', [rewardInfo()], '奖励信息'],
|
|
]
|
|
},{
|
|
'name': 'circuitSettlement',
|
|
'desc': '巡回赛结算奖励',
|
|
'group': 'OutAppCircuit',
|
|
'url': 'webapp/index.php?c=OutAppCircuit&a=circuitSettlement',
|
|
'params': [
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
|
|
]
|
|
|
|
|
|
class rewardInfo(object):
|
|
|
|
def __init__(self):
|
|
self.fields = [
|
|
['start_time', 0, '阶段开始时间'],
|
|
['end_time', 0, '阶段结束时间'],
|
|
['reward', 0, '-1:未结算 0:结算无奖励'],
|
|
] |