revome gameid from localtion

This commit is contained in:
pengtao 2019-07-16 20:08:15 +08:00
parent 2b39e072e1
commit b826e6a435

View File

@ -135,7 +135,7 @@ class DispatchHandler(tornado.web.RequestHandler):
self.write_error(2)
if gameid and locationid:
key = f"{gameid}::{locationid}"
key = f"ad::{gameid}::{locationid}"
ids = my_redis.smembers(key)
info = []
@ -144,7 +144,7 @@ class DispatchHandler(tornado.web.RequestHandler):
else:
try:
for id in ids:
temp = my_redis.hgetall(f"{id}::info")
temp = my_redis.hgetall(f"ad::{id}::info")
info.append(temp)
result = {'errcode': 0, "errmsg": '', "message": {"totoal": len(info), "result": info}}
except Exception as e: