Merge branch 'master' of http://git.kingsome.cn/ops/promotion
This commit is contained in:
commit
f242077a79
@ -66,11 +66,8 @@ def send_cache_data():
|
|||||||
# 检查ID是否存在播放列表中,以及播放次数是否完毕
|
# 检查ID是否存在播放列表中,以及播放次数是否完毕
|
||||||
if all:
|
if all:
|
||||||
# log.info(f"get data was {all}!\n")
|
# log.info(f"get data was {all}!\n")
|
||||||
pdb.set_trace()
|
|
||||||
for line in all:
|
for line in all:
|
||||||
key = f"ad::{line.get('gameid', 0)}::{line.get('channelid', 0)}::{line.get('area').split(',')[0].strip()}\
|
key = f"ad::{line.get('gameid', 0)}::{line.get('channelid', 0)}::{line.get('area').split(',')[0].strip()}::{line.get('locationid', 0)}"
|
||||||
::{line.get('locationid', 0)}"
|
|
||||||
|
|
||||||
if int(line['ad_num']) > 0:
|
if int(line['ad_num']) > 0:
|
||||||
num = my_redis.get(f"ad::{line['id']}::num")
|
num = my_redis.get(f"ad::{line['id']}::num")
|
||||||
if not num:
|
if not num:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user