fix some error

This commit is contained in:
pengtao 2019-07-15 17:32:11 +08:00
parent 3d0a66da68
commit 5f9e232c9f

View File

@ -105,7 +105,7 @@ class DispatchHandler(tornado.web.RequestHandler):
log.error(result)
self.write_error(2)
if gameid and locationid:
key = f"{gameid}::{locationid}"
ids = my_redis.smembers(key)
info = []
@ -118,8 +118,9 @@ class DispatchHandler(tornado.web.RequestHandler):
result = {'errcode': 1, "errmsg": e}
finally:
self.write(result)
else:
result = {'errcode': 2, "errmsg": f"get args failed!"}
self.write(result)
def make_app():