调整location area字段名称

This commit is contained in:
pengtao 2019-09-17 11:54:04 +08:00
parent 6868315b9d
commit 3066ee0169

View File

@ -176,7 +176,7 @@ def send_cache_data():
area_all = get_area_by_locationid(locationid)
print(f"area={area_all}")
for area in area_all.split(','):
key = f"ad::{line.get('gameid', 0)}_{locationid}::{line.get('channelid', 0)}::{area}::{locationid}"
key = f"ad::{gameid}_{locationid}::{channelid}::{area}::{locationid}"
if my_redis.sismember(key, id):
my_redis.srem(key, id)
my_redis.expire(f"ad::{id}::info", 1)