diff --git a/controllers/api_controller.go b/controllers/api_controller.go index bdcdffad9..c56fae150 100644 --- a/controllers/api_controller.go +++ b/controllers/api_controller.go @@ -374,9 +374,9 @@ 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 { data = string(byteData) - data = unicode2utf8(data) } else { return "", model.ErrCodeGeneralFailed, err }