1
This commit is contained in:
parent
ce1f4b3fe1
commit
79e382016f
23
doc/RedDot.py
Normal file
23
doc/RedDot.py
Normal file
@ -0,0 +1,23 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class RedDot(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'redDotList',
|
||||
'desc': '获取红点列表',
|
||||
'group': 'RedDot',
|
||||
'url': 'webapp/index.php?c=RedDot&a=redDotList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['types', '', '红点类型(!!!注意由于红点的计算量较大,最好并发分批取红点状态)","分割 1:赛季手册 2:赛季 3:战队 4:商店 5:背包 6:科研 7:任务 8:活动']
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!reddot_list', [_common.RedDot()], '红点列表']
|
||||
]
|
||||
},
|
||||
]
|
@ -289,3 +289,11 @@ class RankingList(object):
|
||||
['!ranking_list', [RankingItem()], '排行榜'],
|
||||
['my_ranked', RankingItem(), '我的排名(如果ranked<1则表示自己未上榜)'],
|
||||
]
|
||||
|
||||
class RedDot(object):
|
||||
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['type', 0, '红点类型'],
|
||||
['state', 0, '红点状态 0:无 1:有'],
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user