添加状态检查

This commit is contained in:
pengtao 2019-09-29 13:54:45 +08:00
parent 7f839e553b
commit 999521fd35
2 changed files with 33 additions and 1 deletions

View File

@ -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、返回广告列表信息
##### 接口地址

View File

@ -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)