From b118a07541397d9412c5d964643d505d31ef60c2 Mon Sep 17 00:00:00 2001 From: pengtao Date: Mon, 26 Aug 2019 13:32:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=BC=93=E5=AD=98=E8=BF=87?= =?UTF-8?q?=E6=9C=9F=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ad_Readme.md | 2 +- ad_tasks.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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!") # 删除过期的数据