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) } } }