From c0f176f0af2a8ec86b5f375835b8ffe8106b3396 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Mon, 9 May 2022 12:18:57 +0800 Subject: [PATCH] =?UTF-8?q?fix=20#173:=20=E4=BB=8A=E6=97=A5=E6=97=A9?= =?UTF-8?q?=E6=8A=A5=E5=8F=98=E6=88=90=E6=98=A8=E6=97=A5=E7=81=AB=E6=98=9F?= =?UTF-8?q?=E6=99=9A=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/zaobao/zaobao.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/zaobao/zaobao.go b/plugin/zaobao/zaobao.go index 4c2f4892..ae51332c 100644 --- a/plugin/zaobao/zaobao.go +++ b/plugin/zaobao/zaobao.go @@ -49,7 +49,7 @@ func init() { // 插件主体 func getdata() error { // 获取图片链接并且下载 mu.Lock() defer mu.Unlock() - if picdata != nil && time.Since(pictime) <= time.Hour*20 { + if picdata != nil && time.Since(pictime) <= time.Hour*8 && time.Now().Day() == pictime.Day() { return nil } data, err := web.RequestDataWith(web.NewDefaultClient(), api, "GET", "", ua)