This commit is contained in:
suyl
2021-07-14 09:42:15 +08:00
parent 7284949cd7
commit c0388be7c5

View File

@@ -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
}