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)