aa
This commit is contained in:
@@ -1,9 +1,7 @@
|
|||||||
package controllers
|
package controllers
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
|
||||||
"crypto/md5"
|
"crypto/md5"
|
||||||
"encoding/json"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.rosy.net.cn/baseapi/utils"
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
"git.rosy.net.cn/jx-callback/business/jxstore/cms"
|
"git.rosy.net.cn/jx-callback/business/jxstore/cms"
|
||||||
@@ -375,12 +373,6 @@ func (c *ApiController) GetPrintMsg(dataMap map[string]interface{}) (printMsg *c
|
|||||||
} else if printMsg == nil {
|
} else if printMsg == nil {
|
||||||
return printMsg, model.ErrCodeGeneralFailed, fmt.Errorf("未查询到该消息! msg_id: %v", msgID)
|
return printMsg, model.ErrCodeGeneralFailed, fmt.Errorf("未查询到该消息! msg_id: %v", msgID)
|
||||||
} else {
|
} else {
|
||||||
bf := bytes.NewBuffer([]byte{})
|
|
||||||
jsonEncoder := json.NewEncoder(bf)
|
|
||||||
jsonEncoder.SetEscapeHTML(false)
|
|
||||||
if err2 := jsonEncoder.Encode(printMsg.Content); err2 == nil {
|
|
||||||
printMsg.Content = strings.Replace(bf.String(), "\n", "", strings.LastIndex(bf.String(), "\n"))
|
|
||||||
}
|
|
||||||
return printMsg, model.ErrCodeGeneralFailed, err
|
return printMsg, model.ErrCodeGeneralFailed, err
|
||||||
}
|
}
|
||||||
return printMsg, errCode, err
|
return printMsg, errCode, err
|
||||||
|
|||||||
Reference in New Issue
Block a user