From 6d79b3acafec6c9d85cbddd940833d67b3a75c04 Mon Sep 17 00:00:00 2001 From: mofangmin Date: Fri, 27 Sep 2024 14:43:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E4=BB=98=E6=97=B6=E9=97=B4=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- call/redis.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/call/redis.go b/call/redis.go index 98813af..1ec9941 100644 --- a/call/redis.go +++ b/call/redis.go @@ -17,10 +17,10 @@ func AddChannel(channelID int, isSuccess bool) { // 检查键是否存在,如果不存在则设置过期时间 if client.Exists(ctx, totalKey).Val() == 0 { - client.Set(ctx, totalKey, 0, 10*time.Minute) + client.Set(ctx, totalKey, 0, 30*time.Minute) } if client.Exists(ctx, successKey).Val() == 0 { - client.Set(ctx, successKey, 0, 10*time.Minute) + client.Set(ctx, successKey, 0, 30*time.Minute) } // 增加总订单数