diff --git a/workers/core.go b/workers/core.go index d8a825e..b05295c 100644 --- a/workers/core.go +++ b/workers/core.go @@ -172,9 +172,9 @@ func (s *StdAns) SendMsg(msg string) bool { url := cfg["POSTURL"].(string) + "/send_msg" // println("core:", url) // fmt.Println("请求地址:", url) - fmt.Println("响应信息:\n", msg) + // fmt.Println("响应信息:\n", msg) request := gorequest.New() - resp, body, errs := request.Post(url). + resp, _, errs := request.Post(url). Set("Content-Type", "application/json"). Send(string(requestBody)).End() if len(errs) > 0 { @@ -184,7 +184,7 @@ func (s *StdAns) SendMsg(msg string) bool { } defer resp.Body.Close() // res, _ := io.ReadAll(resp.Body) - fmt.Println("响应返回:", body) + // fmt.Println("响应返回:", body) return true } @@ -208,7 +208,7 @@ func (s *StdAns) GetImage(file string) string { fmt.Println("解析JSON失败:", err) return "" } - fmt.Println("url:", url) + // fmt.Println("url:", url) path, ok := data["data"].(map[string]interface{})["file"].(string) if !ok { return ""