返回广告列表前判断内容,不返回状态为null的信息
This commit is contained in:
parent
6c4d060fb1
commit
64fd77ed9e
@ -130,9 +130,10 @@ def send_cache_data():
|
||||
if line:
|
||||
locationids = json.loads(line.get('locationid'))
|
||||
for locationid in str(locationids).replace('[','').replace(']','').split(','):
|
||||
locationid = locationid.strip()
|
||||
area_all = get_area_by_locationid(locationid)
|
||||
for area in area_all.split(','):
|
||||
|
||||
area = area.strip()
|
||||
line['locationid'] = locationid
|
||||
line['area'] = area
|
||||
|
||||
@ -169,9 +170,11 @@ def send_cache_data():
|
||||
try:
|
||||
id, gameid, channelid, locationids, status = line
|
||||
for locationid in locationids.replace("[", "").replace("]", "").replace('"', "").split(','):
|
||||
locationid = locationid.strip()
|
||||
area_all = get_area_by_locationid(locationid)
|
||||
if area_all:
|
||||
for area in area_all.split(','):
|
||||
area = area.strip()
|
||||
key = f"ad::{gameid}_{locationid}::{channelid}::{area}::{locationid}"
|
||||
values = f"{id}_{locationid}"
|
||||
if my_redis.sismember(key, values):
|
||||
|
Loading…
x
Reference in New Issue
Block a user