diff --git a/controllers/api_controller.go b/controllers/api_controller.go index a8e9ded90..9b848be38 100644 --- a/controllers/api_controller.go +++ b/controllers/api_controller.go @@ -374,7 +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 { - if byteData, err := json.Marshal(utils.Struct2MapByJson(printMsg)); err == nil { + if byteData, err := json.Marshal(printMsg); err == nil { data = string(byteData) } else { return "", model.ErrCodeGeneralFailed, err