调整广告匹配时,广告位是否存在的判断
This commit is contained in:
parent
701e8ad4fa
commit
d82773212e
@ -33,7 +33,7 @@ def get_area_by_locationid(ldid):
|
||||
def split_ad_info(localtionid, line):
|
||||
# 从locationid获取位置相关属性,与ad信息打包,产生提供给接口用的数据
|
||||
new = copy.deepcopy(line)
|
||||
location_sql = f"select x,y,x_offset,y_offset,type,mode,ld_property from location WHERE in_used=1 and id={localtionid}"
|
||||
location_sql = f"select x,y,x_offset,y_offset,type,mode,ld_property from location WHERE id={localtionid}"
|
||||
data = mydb.query(location_sql)
|
||||
try:
|
||||
new['x'], new['y'], new['x_offset'], new['y_offset'], new['type'], new['mode'], new['ld_property'] = data[0]
|
||||
|
Loading…
x
Reference in New Issue
Block a user