From 5a85a8376f6b2f05335980eef46fe47bcfd9b517 Mon Sep 17 00:00:00 2001 From: lixiangwuxian Date: Thu, 17 Jul 2025 15:07:27 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=9C=A8=20CheckNewRss=20=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E4=B8=AD=E6=B7=BB=E5=8A=A0=E6=97=A5=E5=BF=97=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E5=8A=9F=E8=83=BD=EF=BC=8C=E4=BB=A5=E4=BE=BF=E6=9B=B4?= =?UTF-8?q?=E5=A5=BD=E5=9C=B0=E8=B7=9F=E8=B8=AA=20RSS=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E8=BF=87=E7=A8=8B=EF=BC=8C=E5=A2=9E=E5=BC=BA=E8=B0=83=E8=AF=95?= =?UTF-8?q?=E8=83=BD=E5=8A=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/rss/job.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/handler/rss/job.go b/handler/rss/job.go index 81063b5..2e40c25 100644 --- a/handler/rss/job.go +++ b/handler/rss/job.go @@ -2,6 +2,7 @@ package rss import ( "fmt" + "log" "time" "git.lxtend.com/lixiangwuxian/qqbot/action" @@ -46,12 +47,14 @@ func CheckNewRss() { if feed.ID == 0 { continue } + log.Println("groupID:", group.GroupID, "feed.FeedURL:", feed.FeedURL) //获取最新的rss数据 title, items, err := ParseFeed(feed.FeedURL) if err != nil { continue } //比较最新的rss数据与订阅信息中的last_item_hash,若有更新则向对应群发送消息,并更新订阅信息中的last_item_hash + log.Println("localHash:", group.LastItemHash, "remoteHash:", items[0].Hash) if items[0].Hash != group.LastItemHash { action.ActionManager.SendMsg(&model.Reply{ FromMsg: model.Message{