diff --git a/ad_interface_tornado.py b/ad_interface_tornado.py index e021720..3f2ec8a 100644 --- a/ad_interface_tornado.py +++ b/ad_interface_tornado.py @@ -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: