This commit is contained in:
suyl
2021-07-14 09:45:23 +08:00
parent c0388be7c5
commit 9aafc7da9a

View File

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