From 5a8e5d0a71245a82323d0b14596a502029d7ec81 Mon Sep 17 00:00:00 2001 From: liyp Date: Sun, 14 Jul 2024 21:45:57 +0800 Subject: [PATCH] =?UTF-8?q?feat(workers):=20=E4=BF=AE=E6=94=B9GetHisMsg?= =?UTF-8?q?=E5=87=BD=E6=95=B0=E4=BB=A5=E8=BF=94=E5=9B=9Eraw=5Fmessage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更改了GetHisMsg函数的返回值,从data["data"].(map[string]interface{})["message"].(string) 更改为data["data"].(map[string]interface{})["raw_message"].(string),以获取原始消息内容。 --- workers/core.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workers/core.go b/workers/core.go index 07d7b40..d5065b9 100644 --- a/workers/core.go +++ b/workers/core.go @@ -139,7 +139,7 @@ func (s *StdAns) GetHisMsg(id string) string { } // fmt.Println("响应返回:", body) - return data["data"].(map[string]interface{})["message"].(string) + return data["data"].(map[string]interface{})["raw_message"].(string) } func (s *StdAns) SendMsg(msg string) bool {