From 6b8d1326202eca39591fe99046a5871f1833ccc3 Mon Sep 17 00:00:00 2001 From: liyp Date: Tue, 9 Jul 2024 15:35:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=8E=E7=AB=AF=E6=94=AF?= =?UTF-8?q?=E6=8C=81=EF=BC=8C=E4=BD=BF=E7=94=A8NapCatQQ=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=8F=91=E9=80=81=E6=B6=88=E6=81=AF=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- workers/core.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/workers/core.go b/workers/core.go index 2be95ff..f976169 100644 --- a/workers/core.go +++ b/workers/core.go @@ -121,11 +121,11 @@ func (s *StdAns) SendMsg(msg string) bool { return false } requestBody, err := json.Marshal(map[string]interface{}{ - "action": "send_msg", - "params": map[string]interface{}{ - "group_id": s.GID, - "message": msg, - }, + // "action": "send_msg", + // "params": map[string]interface{}{ + "group_id": s.GID, + "message": msg, + // }, }) if err != nil { fmt.Println("Error marshaling JSON:", err) @@ -138,7 +138,7 @@ func (s *StdAns) SendMsg(msg string) bool { } // fmt.Println(string(re)) - url := cfg["POSTURL"].(string) + url := cfg["POSTURL"].(string) + "/send_msg" // println("core:", url) // fmt.Println("请求地址:", url) fmt.Println("响应信息:\n", msg)