fix some error
This commit is contained in:
parent
09ee433d44
commit
3d0a66da68
@ -95,15 +95,17 @@ 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)}"}
|
||||||
self.write_error(result)
|
log.error(result)
|
||||||
|
self.write_error(2)
|
||||||
|
|
||||||
|
|
||||||
if gameid and locationid:
|
|
||||||
key = f"{gameid}::{locationid}"
|
key = f"{gameid}::{locationid}"
|
||||||
ids = my_redis.smembers(key)
|
ids = my_redis.smembers(key)
|
||||||
info = []
|
info = []
|
||||||
@ -116,9 +118,7 @@ class DispatchHandler(tornado.web.RequestHandler):
|
|||||||
result = {'errcode': 1, "errmsg": e}
|
result = {'errcode': 1, "errmsg": e}
|
||||||
finally:
|
finally:
|
||||||
self.write(result)
|
self.write(result)
|
||||||
else:
|
|
||||||
result = {'errcode': 2, "errmsg": f"get args failed!"}
|
|
||||||
self.write(result)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user