aa
This commit is contained in:
@@ -379,7 +379,7 @@ func (c *ApiController) GetPrintMsg(dataMap map[string]interface{}) (data, errCo
|
||||
jsonEncoder := json.NewEncoder(bf)
|
||||
jsonEncoder.SetEscapeHTML(false)
|
||||
if err2 := jsonEncoder.Encode(printMsg); err2 == nil {
|
||||
data = bf.String()
|
||||
data = strings.Replace(bf.String(), "\n", "", strings.LastIndex(bf.String(), "\n"))
|
||||
} else {
|
||||
return "", model.ErrCodeGeneralFailed, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user