添加状态检查
This commit is contained in:
parent
7f839e553b
commit
999521fd35
32
ad_Readme.md
32
ad_Readme.md
@ -1,3 +1,35 @@
|
||||
#### 0、广告可用性检查
|
||||
|
||||
##### 接口地址
|
||||
|
||||
http://spread-test.kingsome.cn/webapp/index.php
|
||||
|
||||
##### 返回格式:json
|
||||
|
||||
##### 请求方式:post
|
||||
|
||||
##### 请求示范
|
||||
|
||||
http://spread-test.kingsome.cn/webapp/index.php?c=Ops&a=selfChecking
|
||||
|
||||
##### 请求参数说明
|
||||
|
||||
| 名称 | 类型 | 必填 | 说明 |
|
||||
| --------- | ---- | ---- | ---------------------------------- |
|
||||
| c | string | 是 | OPS通用接口标志 |
|
||||
| a | string | 是 | 方法定义 selfChecking |
|
||||
|
|
||||
##### 返回参数说明
|
||||
|
||||
| 名称 | 类型 | 必填 | 说明 |
|
||||
| ---- | ---- | ---- | -------- |
|
||||
| errcode | int | 是 | 返回状态 |
|
||||
| errmsg | string | 是 | 错误信息 |
|
||||
|
||||
##### 返回示例
|
||||
{"errcode":0,"errmsg":"","healthy":1,"max_rundelay":10}
|
||||
|
||||
|
||||
#### 1、返回广告列表信息
|
||||
|
||||
##### 接口地址
|
||||
|
@ -136,6 +136,7 @@ class DispatchHandler(tornado.web.RequestHandler):
|
||||
|
||||
|
||||
def _selfGetAdList(self):
|
||||
pdb.set_trace()
|
||||
try:
|
||||
input = json.loads(self.get_query_argument('body'))
|
||||
gameid = input['gameid']
|
||||
@ -153,7 +154,6 @@ class DispatchHandler(tornado.web.RequestHandler):
|
||||
else:
|
||||
pass
|
||||
ad_keys = my_redis.keys(key_word)
|
||||
pdb.set_trace()
|
||||
ids = []
|
||||
for ad_key in ad_keys:
|
||||
adlists = my_redis.smembers(ad_key)
|
||||
|
Loading…
x
Reference in New Issue
Block a user