添加返回localtion的接口
This commit is contained in:
parent
94ed3c28bb
commit
4a60c5d846
28
ad_tasks.py
28
ad_tasks.py
@ -95,20 +95,20 @@ def send_cache_data():
|
||||
item['y_offset'] = item['area'].split(',')[-1].strip().strip(')')
|
||||
except:
|
||||
item['y_offset'] = 0
|
||||
try:
|
||||
print(f"0={item}")
|
||||
temp = {}
|
||||
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:
|
||||
log.error(f"write {item}",exc_info=True)
|
||||
# try:
|
||||
# print(f"0={item}")
|
||||
# temp = {}
|
||||
# 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:
|
||||
# log.error(f"write {item}",exc_info=True)
|
||||
|
||||
all.append(item)
|
||||
except Exception:
|
||||
|
Loading…
x
Reference in New Issue
Block a user