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:
parent
55bdc0615d
commit
5a8e5d0a71
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue