revome gameid from localtion
This commit is contained in:
parent
2b39e072e1
commit
b826e6a435
@ -135,7 +135,7 @@ class DispatchHandler(tornado.web.RequestHandler):
|
|||||||
self.write_error(2)
|
self.write_error(2)
|
||||||
|
|
||||||
if gameid and locationid:
|
if gameid and locationid:
|
||||||
key = f"{gameid}::{locationid}"
|
key = f"ad::{gameid}::{locationid}"
|
||||||
|
|
||||||
ids = my_redis.smembers(key)
|
ids = my_redis.smembers(key)
|
||||||
info = []
|
info = []
|
||||||
@ -144,7 +144,7 @@ class DispatchHandler(tornado.web.RequestHandler):
|
|||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
for id in ids:
|
for id in ids:
|
||||||
temp = my_redis.hgetall(f"{id}::info")
|
temp = my_redis.hgetall(f"ad::{id}::info")
|
||||||
info.append(temp)
|
info.append(temp)
|
||||||
result = {'errcode': 0, "errmsg": '', "message": {"totoal": len(info), "result": info}}
|
result = {'errcode': 0, "errmsg": '', "message": {"totoal": len(info), "result": info}}
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user