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!")