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