From 2ddba3c31f3a1ea23c771abe3f652296577d8a6c Mon Sep 17 00:00:00 2001 From: liyp Date: Wed, 3 Apr 2024 22:02:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E5=8D=8F=E7=A8=8B=E6=94=AF?= =?UTF-8?q?=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 16 ++++++++-------- workers/pkg.go | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/main.go b/main.go index 19698ee..21872ad 100644 --- a/main.go +++ b/main.go @@ -36,14 +36,14 @@ func handlePost(w http.ResponseWriter, r *http.Request) { func main() { APIURL := config.GlobalConfig.Server.APIURL - PORT := config.GlobalConfig.Server.Port - fmt.Println(APIURL) - fmt.Println(PORT) - // http.HandleFunc("/", handlePost) - // // 协程支持 - http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { - go handlePost(w, r) - }) + // PORT := config.GlobalConfig.Server.Port + // fmt.Println(APIURL) + // fmt.Println(PORT) + http.HandleFunc("/", handlePost) + // 协程支持 + // http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { + // go handlePost(w, r) + // }) fmt.Println("Server listening on port 5580...") // APIURL 为 go-cqhttp 配置的事件上报地址 diff --git a/workers/pkg.go b/workers/pkg.go index 14edcd5..878531a 100644 --- a/workers/pkg.go +++ b/workers/pkg.go @@ -112,7 +112,7 @@ func (a *Pkg) GetMsg() string { msg += "描述:" + result["pkgdesc"].(string) + "\n" msg += "打包:" + result["packager"].(string) + "\n" msg += "链接:" + result["url"].(string) + "\n" - msg += "更新日期:" + result["last_update"].(string) + "\n" + msg += "更新日期:" + result["last_update"].(string) return msg