From e70b3f2cc2a0f3460d9d2194e4bc92de1482c2d8 Mon Sep 17 00:00:00 2001 From: pengtao Date: Thu, 10 Oct 2019 20:01:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=BF=87=E6=9C=9Fkey?= =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ops/ad_produce.py | 2 +- prod_config.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ops/ad_produce.py b/ops/ad_produce.py index a8f1d43..8a00ac5 100644 --- a/ops/ad_produce.py +++ b/ops/ad_produce.py @@ -135,7 +135,7 @@ def produce_task(): line['area'] = area str01 = f"{line.get('gameid', 0)}_{locationid}_{area}" key = "adlist::{0}::{1}::{2}::{3}".format(str01, line['channelid'], area, locationid) - redis_key = f"{line['id']}_{locationid}" + redis_key = f"{line['id']}_{locationid}_{area}" adinfo[redis_key] = split_ad_info(locationid, line) if int(line['ad_num']) == 0: adlist[key].append(redis_key) diff --git a/prod_config.py b/prod_config.py index 36509be..83356be 100644 --- a/prod_config.py +++ b/prod_config.py @@ -34,7 +34,7 @@ elif myenv == 'test1': log_path = "/data/logs/test/" ad_list_interface_port = 6014 priv_i_port=6015 - info_expire = 60 * 60 * 3 + info_expire = 60 * 2 adkey_expire = 60 * 2 else: raise Exception("GET config with mysql/redis failed!")