From b826e6a435ebf82bda489999c9609ef9b47f7e26 Mon Sep 17 00:00:00 2001 From: pengtao Date: Tue, 16 Jul 2019 20:08:15 +0800 Subject: [PATCH] revome gameid from localtion --- ad_interface_tornado.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: