1
This commit is contained in:
@@ -407,8 +407,10 @@ func buildMsg(printMsg *model.PrintMsg) (data []byte, err error) {
|
|||||||
globals.SugarLogger.Debug("order_msg Order_no 转换异常")
|
globals.SugarLogger.Debug("order_msg Order_no 转换异常")
|
||||||
}
|
}
|
||||||
orderNoHexH, orderNoHexL = int2h8l8(no)
|
orderNoHexH, orderNoHexL = int2h8l8(no)
|
||||||
|
|
||||||
// 将数据与模板组装
|
// 将数据与模板组装
|
||||||
|
if strings.Contains(content, "•") {
|
||||||
|
content = strings.ReplaceAll(content, "•", "-")
|
||||||
|
}
|
||||||
printDataGBK, _ := jxutils.Utf8ToGbk([]byte(utils.FilterEmoji(content)))
|
printDataGBK, _ := jxutils.Utf8ToGbk([]byte(utils.FilterEmoji(content)))
|
||||||
printData = hex.EncodeToString(printDataGBK)
|
printData = hex.EncodeToString(printDataGBK)
|
||||||
printData = replaceContent(printData, printMsg)
|
printData = replaceContent(printData, printMsg)
|
||||||
|
|||||||
Reference in New Issue
Block a user