diff --git a/controllers/api_controller.go b/controllers/api_controller.go index c56fae150..a8e9ded90 100644 --- a/controllers/api_controller.go +++ b/controllers/api_controller.go @@ -374,8 +374,7 @@ func (c *ApiController) GetPrintMsg(dataMap map[string]interface{}) (data, errCo } else if printMsg == nil { return "", model.ErrCodeGeneralFailed, fmt.Errorf("未查询到该消息! msg_id: %v", msgID) } else { - printMsg.Content = unicode2utf8(printMsg.Content) - if byteData, err := json.Marshal(printMsg); err == nil { + if byteData, err := json.Marshal(utils.Struct2MapByJson(printMsg)); err == nil { data = string(byteData) } else { return "", model.ErrCodeGeneralFailed, err