game2006api/doc/Other.py
2023-08-23 04:15:52 +08:00

46 lines
1.7 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 未开始'],
], '信息'],
]
},
]