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