80 lines
2.9 KiB
Python
80 lines
2.9 KiB
Python
import _common
|
|
|
|
class Other(object):
|
|
|
|
def __init__(self):
|
|
self.apis = [
|
|
{
|
|
'name': 'tag',
|
|
'desc': '红点提示',
|
|
'group': 'Other',
|
|
'url': 'webapp/index.php?c=Other&a=tag',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
['param', '0', '1:任务 2:碎片'],
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
['!data', [
|
|
['mission',0,'任务: 1 提示, 0 不提示'],
|
|
['piece',[
|
|
['hero',0,'英雄碎片: 1 提示, 0 不提示'],
|
|
['gun',0,'枪械碎片: 1 提示, 0 不提示'],
|
|
],'碎片']
|
|
], '提示信息'],
|
|
]
|
|
},
|
|
{
|
|
'name': 'getGameModuleState',
|
|
'desc': '功能模块的状态',
|
|
'group': 'Other',
|
|
'url': 'webapp/index.php?c=Other&a=getGameModuleState',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
['data', [
|
|
['firstTopUp',0,'首充: 1 已充, 0 未充'],
|
|
['signDayState',0,'7日签到: 1 签满, 0 未签满'],
|
|
['rankState',0,'排位: 1 赛季开始了, 0 赛季未开始'],
|
|
['nextRankSeasonCountdown',0,'下赛季倒计时'],
|
|
['hashRateState',0,'算力: 1 开始, 0 未开始'],
|
|
], '信息'],
|
|
]
|
|
},
|
|
{
|
|
'name': 'getCecRewardHistory',
|
|
'desc': 'cec历史记录界面',
|
|
'group': 'Other',
|
|
'url': 'webapp/index.php?c=Other&a=getCecRewardHistory',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
['!list', [
|
|
['type',0,'1:排位 2:算力 3:质押'],
|
|
['cecVal',0,'cec数量'],
|
|
['createtime',0,'获取时间']
|
|
], '历史记录'],
|
|
['cec',0,'cec'],
|
|
]
|
|
},
|
|
{
|
|
'name': 'getMapModeList',
|
|
'desc': '获取当前开启的地图模式列表',
|
|
'group': 'Other',
|
|
'url': 'webapp/index.php?c=Other&a=getMapModeList',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
['!mode_list', [
|
|
['id',0,'mapMode配置id'],
|
|
], '地图模式列表'],
|
|
]
|
|
},
|
|
]
|