From dcbeeebc206963521afb11a2863ca365e67b77c5 Mon Sep 17 00:00:00 2001 From: srcrs Date: Sat, 20 Apr 2024 12:52:42 +0800 Subject: [PATCH] add AutoUpdatePush --- main.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/main.go b/main.go index d778d89..a02ef9a 100644 --- a/main.go +++ b/main.go @@ -64,13 +64,15 @@ func tplHandler(w http.ResponseWriter, r *http.Request) { // 定义一个数据对象 data := struct { - Keywords string - RssDataList []models.Feed - DarkMode bool + Keywords string + RssDataList []models.Feed + DarkMode bool + AutoUpdatePush int }{ - Keywords: getKeywords(), - RssDataList: utils.GetFeeds(), - DarkMode: darkMode, + Keywords: getKeywords(), + RssDataList: utils.GetFeeds(), + DarkMode: darkMode, + AutoUpdatePush: globals.RssUrls.AutoUpdatePush, } // 渲染模板并将结果写入响应