From d6961a63a18aa0d1a5ee8d8fcb6523cfa1758234 Mon Sep 17 00:00:00 2001 From: pengtao Date: Tue, 20 Aug 2019 11:37:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=BF=94=E5=9B=9Elocaltion?= =?UTF-8?q?=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ad_tasks.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ad_tasks.py b/ad_tasks.py index 9ce7b53..5762017 100644 --- a/ad_tasks.py +++ b/ad_tasks.py @@ -7,7 +7,7 @@ from log.mylog import define_logger import logging from prod_config import BEGIN, END, ad_list_interface_port import pdb - +import json define_logger("/data/logs/ad_tasks.log") log = logging.getLogger(__name__) @@ -95,6 +95,12 @@ def send_cache_data(): item['y_offset'] = item['area'].split(',')[-1].strip().strip(')') except: item['y_offset'] = 0 + try: + temp = {} + temp['jump_param'] = item['jump_param'] + item['jump_appid'] = json.loads(item['ad_property']).update(temp) + except: + pass all.append(item) except Exception: