From 869afc4290686cc0c89179ff8c31c518d97f76f8 Mon Sep 17 00:00:00 2001 From: pengtao Date: Thu, 19 Sep 2019 19:53:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95=20=E6=9A=82=E5=81=9C?= =?UTF-8?q?=E5=B9=BF=E5=91=8A=E7=BB=A7=E7=BB=AD=E6=92=AD=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ad_interface_tornado.py | 2 +- ad_tasks.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ad_interface_tornado.py b/ad_interface_tornado.py index ffa5851..b987eb9 100644 --- a/ad_interface_tornado.py +++ b/ad_interface_tornado.py @@ -112,7 +112,7 @@ class DispatchHandler(tornado.web.RequestHandler): key_word = f"ad::{gameid}_*::{channelid}::{area}::*" else: return self.write({'errcode': 2, "errmsg": "key_word not set!"}) - print(f"key_word={key_word}") + #print(f"key_word={key_word}") ad_keys = my_redis.keys(key_word) ids = [] if ad_keys: diff --git a/ad_tasks.py b/ad_tasks.py index 7a892d8..f4b78d4 100644 --- a/ad_tasks.py +++ b/ad_tasks.py @@ -169,6 +169,7 @@ def send_cache_data(): for line in remove_data: try: id, gameid, channelid, locationids, status = line + print(f"find remove data in {line} ") for locationid in locationids.replace("[", "").replace("]", "").replace('"', "").split(','): locationid = locationid.strip() area_all = get_area_by_locationid(locationid) @@ -177,6 +178,7 @@ def send_cache_data(): area = area.strip() key = f"ad::{gameid}_{locationid}::{channelid}::{area}::{locationid}" values = f"{id}_{locationid}" + print(f"remove {values} from {key}") if my_redis.sismember(key, values): my_redis.srem(key, values) my_redis.expire(f"adinfo::{values}::info", 1)