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(), ['types', '', '红点类型(!!!注意由于红点的计算量较大,最好并发分批取红点状态)","分割 1:英雄 2:芯片 3:背包 4:签到 5:算力'], ], 'response': [ _common.RspHead(), ['!list', [Tag()], '红点列表'] ] }, { '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'], ], '地图模式列表'], ] }, ] class Tag(object): def __init__(self): self.fields = [ ['type', 0, '红点类型'], ['state', 0, '红点状态 0:无 1:有'], ]