diff --git a/ad_Readme.md b/ad_Readme.md index 4f46363..6f01426 100644 --- a/ad_Readme.md +++ b/ad_Readme.md @@ -12,7 +12,7 @@ http://spread.kingsome.cn/webapp/index.php?c=Ops&a=getAdList&body={"gameid":"10034","locationid":1001} - +http://spread.kingsome.cn/webapp/index.php?c=Ops&a=getAdList&body={"gameid":"1003","area":1} ##### 请求参数说明 | 名称 | 类型 | 必填 | 说明 | diff --git a/ad_tasks.py b/ad_tasks.py index e4b101d..bd2eae5 100644 --- a/ad_tasks.py +++ b/ad_tasks.py @@ -144,8 +144,8 @@ def send_cache_data(): for item in remove_list: line.pop(item) my_redis.hmset(f"ad::{line['id']}::info", line) - my_redis.expire(f"ad::{line['id']}::info", 60) - # my_redis.expire(f"ad::{line['id']}::info", 3600 * 24 * 7) + # my_redis.expire(f"ad::{line['id']}::info", 60) + my_redis.expire(f"ad::{line['id']}::info", 3600 * 24) log.info(f"add ad::{line['id']}::info to redis!") # 删除过期的数据