aa
This commit is contained in:
@@ -374,9 +374,9 @@ func (c *ApiController) GetPrintMsg(dataMap map[string]interface{}) (data, errCo
|
|||||||
} else if printMsg == nil {
|
} else if printMsg == nil {
|
||||||
return "", model.ErrCodeGeneralFailed, fmt.Errorf("未查询到该消息! msg_id: %v", msgID)
|
return "", model.ErrCodeGeneralFailed, fmt.Errorf("未查询到该消息! msg_id: %v", msgID)
|
||||||
} else {
|
} else {
|
||||||
|
printMsg.Content = unicode2utf8(printMsg.Content)
|
||||||
if byteData, err := json.Marshal(printMsg); err == nil {
|
if byteData, err := json.Marshal(printMsg); err == nil {
|
||||||
data = string(byteData)
|
data = string(byteData)
|
||||||
data = unicode2utf8(data)
|
|
||||||
} else {
|
} else {
|
||||||
return "", model.ErrCodeGeneralFailed, err
|
return "", model.ErrCodeGeneralFailed, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user