添加返回条数控制

This commit is contained in:
pengtao 2019-07-17 16:55:40 +08:00
parent 764ed22669
commit a39d97fbbc

View File

@ -115,16 +115,15 @@ class DispatchHandler(tornado.web.RequestHandler):
def _selfGetAdList(self): def _selfGetAdList(self):
pdb.set_trace()
try: try:
input = json.loads(self.get_query_argument('body')) input = json.loads(self.get_query_argument('body'))
gameid = input['gameid'] gameid = input['gameid']
locationid = input['locationid'] locationid = input['locationid']
except Exception as e: except Exception as e:
result = {'errcode': 2, "errmsg": f"get args failed,{str(e)}"} result = {'errcode': 2, "errmsg": f"get args failed,{str(e)}"}
log.error(result) log.error(result)
self.write_error(2) self.write_error(2)
return False
if gameid and locationid: if gameid and locationid:
key = f"ad::{gameid}::{locationid}" key = f"ad::{gameid}::{locationid}"