From ff83e4675c3e505c0d48333a0ec951bd5fc6cda5 Mon Sep 17 00:00:00 2001 From: pengtao Date: Tue, 20 Aug 2019 11:55:18 +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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ad_tasks.py b/ad_tasks.py index 5762017..1c1a1a2 100644 --- a/ad_tasks.py +++ b/ad_tasks.py @@ -97,8 +97,11 @@ def send_cache_data(): item['y_offset'] = 0 try: temp = {} + pdb.set_trace() temp['jump_param'] = item['jump_param'] - item['jump_appid'] = json.loads(item['ad_property']).update(temp) + if not isinstance(item.get('ad_property', {}), dict): + item['ad_property'] = dict(item.get('ad_property', {})) + item['ad_property'].update(temp) except: pass