From 94ed3c28bbe0facdd2fb8482b104682e1ead89b7 Mon Sep 17 00:00:00 2001 From: pengtao Date: Tue, 20 Aug 2019 13:23:33 +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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ad_tasks.py b/ad_tasks.py index 3fd4f36..fb179de 100644 --- a/ad_tasks.py +++ b/ad_tasks.py @@ -98,12 +98,13 @@ def send_cache_data(): try: print(f"0={item}") temp = {} - temp['jump_param'] = item['jump_param'] + temp['jump_param'] = item.get('jump_param',"") if not isinstance(item.get('ad_property', {}), dict): if not item.get('ad_property', {}): item['ad_property']={}.update(temp) else: item['ad_property'] = json.loads(item.get('ad_property', {})).update(temp) + print(f"item['ad_property']={item['ad_property']}") item['ad_property']=json.dumps(item['ad_property']) print(f"1={item}") except Exception: