From 9ac7b9b2c0911f2845c63d877a906df008603bf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Mon, 15 Nov 2021 09:15:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=85=E5=AD=98=E7=BC=93=E5=AD=98=E5=91=A8?= =?UTF-8?q?=E6=9C=9F=E5=8D=95=E4=BD=8D=E6=94=B9=E6=88=90=E5=A4=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/caches/item.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/caches/item.go b/internal/caches/item.go index 3ddb39c..58548c9 100644 --- a/internal/caches/item.go +++ b/internal/caches/item.go @@ -15,7 +15,7 @@ const ( // 计算当前周 // 不要用YW,因为需要计算两周是否临近 func currentWeek() int32 { - return int32(time.Now().Unix() / 604800) + return int32(time.Now().Unix() / 86400) } type Item struct {