添加返回localtion的接口

This commit is contained in:
pengtao 2019-08-20 11:37:31 +08:00
parent 578e775402
commit d6961a63a1

View File

@ -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: