调整广告返回内容
This commit is contained in:
parent
dddf1e40b6
commit
68d6e1e326
@ -479,8 +479,6 @@ http://154.8.214.202:5015/interface/ad
|
||||
|
||||
##### 请求示范
|
||||
|
||||
|
||||
|
||||
http://154.8.214.202:5015/interface/ad?id=1002
|
||||
|
||||
http://154.8.214.202:5015/interface/ad?companyid=0
|
||||
|
@ -30,7 +30,7 @@ def send_cache_data():
|
||||
# 添加无天数限定的记录
|
||||
get_full_data = f"""select a.id,a.name,a.ad_num,a.ad_title,a.ad_body,a.ad_image,a.jump_param,a.ad_sort," \
|
||||
f"a.companyid,a.gameid,a.channelid,a.jump_status,b.area,b.type,b.mode,b.id from ad a,location b where \
|
||||
a.locationid=b.id AND begin_time='{BEGIN}' or end_time='{END}'"""
|
||||
a.locationid=b.id AND a.status=1 AND a.in_used=1 AND begin_time='{BEGIN}' or end_time='{END}'"""
|
||||
full_data = mydb.query(get_full_data)
|
||||
|
||||
if full_data:
|
||||
@ -49,7 +49,7 @@ def send_cache_data():
|
||||
# 添加有天数限定的记录
|
||||
get_data_sql = f"""select a.id,a.name,a.ad_num,a.ad_title,a.ad_body,a.ad_image,a.jump_param,\
|
||||
a.ad_sort,a.companyid,a.gameid,a.channelid,a.jump_status,b.area,b.type,b.mode,b.id from ad a ,location b \
|
||||
where'{now}'>a.begin_time and '{now}'<a.end_time and a.locationid=b.id ;"""
|
||||
where'{now}'>a.begin_time and '{now}'<a.end_time AND a.status=1 AND a.in_used=1 and a.locationid=b.id ;"""
|
||||
|
||||
data = mydb.query(get_data_sql)
|
||||
if data:
|
||||
|
Loading…
x
Reference in New Issue
Block a user