feat(workers): 修改GetHisMsg函数以返回raw_message

更改了GetHisMsg函数的返回值,从data["data"].(map[string]interface{})["message"].(string)
更改为data["data"].(map[string]interface{})["raw_message"].(string),以获取原始消息内容。
This commit is contained in:
liyp 2024-07-14 21:45:57 +08:00
parent 55bdc0615d
commit 5a8e5d0a71

View file

@ -139,7 +139,7 @@ func (s *StdAns) GetHisMsg(id string) string {
} }
// fmt.Println("响应返回:", body) // 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 { func (s *StdAns) SendMsg(msg string) bool {