From 9aafc7da9a3d3a8d5f9efbdf97210a22853d6d03 Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Wed, 14 Jul 2021 09:45:23 +0800 Subject: [PATCH] aa --- controllers/api_controller.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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