From 527998db49ca08ae03c0438673577124b92effc4 Mon Sep 17 00:00:00 2001 From: lixiangwuxian Date: Mon, 21 Jul 2025 00:03:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E4=B8=BA=E5=85=88?= =?UTF-8?q?=E6=9B=B4=E6=96=B0hash=E5=86=8D=E4=B8=8A=E6=8A=A5=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/rss/job.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/rss/job.go b/handler/rss/job.go index e12a570..b626a81 100644 --- a/handler/rss/job.go +++ b/handler/rss/job.go @@ -61,6 +61,7 @@ func CheckNewRss() { //比较最新的rss数据与订阅信息中的last_item_hash,若有更新则向对应群发送消息,并更新订阅信息中的last_item_hash log.Println("localHash:", group.LastItemHash, "remoteHash:", items[0].Hash) if items[0].Hash != group.LastItemHash { + db.Model(&group).Update("last_item_hash", items[0].Hash) action.ActionManager.SendMsg(&model.Reply{ FromMsg: model.Message{ GroupInfo: model.GroupInfo{ @@ -77,7 +78,6 @@ func CheckNewRss() { }, }, }) - db.Model(&group).Update("last_item_hash", items[0].Hash) } } }