This commit is contained in:
suyl
2021-07-14 10:00:09 +08:00
parent 9aafc7da9a
commit 38b2a5363b

View File

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