This commit is contained in:
richboo111
2023-03-20 15:59:18 +08:00
parent ba5bc7d34d
commit 73444292d9

View File

@@ -37,6 +37,7 @@ func (c *PrinterHandler) PrintMsg(ctx *jxcontext.Context, sn, copies, voiceType,
if utils.Str2Int(copies) < 0 || utils.Str2Int(copies) > 3 {
copies = "1"
}
globals.SugarLogger.Debugf("printMsg voiceType====%s", voiceType)
printOrderID, err1 := api.XpyunAPI.Print(&xpyunapi.PrintRequest{
Sn: sn,
Content: msgContent,
@@ -145,7 +146,7 @@ func (c *PrinterHandler) PrintCancelOrRefundOrder(ctx *jxcontext.Context, printT
} else {
content = c.getCancelOrRefundOrderContentBig(order, printType, storeDetail)
}
globals.SugarLogger.Debugf("PrintCancelOrRefundOrder content=====%s", content)
if content == "" {
return nil, nil
}