This commit is contained in:
richboo111
2023-03-21 15:29:09 +08:00
parent 5f592aebfd
commit 1b67bfd81c

View File

@@ -113,7 +113,7 @@ func (c *PrinterHandler) PrintOrder(ctx *jxcontext.Context, store *model.Store,
}
count := 0
for {
printerStatus, err := c.PrintMsg(ctx, store.PrinterSN, "1", utils.Int2Str(xpyunapi.VoicePlayOrder), content)
printerStatus, err := c.PrintMsg(ctx, store.PrinterSN, "", utils.Int2Str(xpyunapi.VoicePlayOrder), content)
if (store.PrinterFontSize == partner.PrinterFontSizeBig2 || store.PrinterFontSize == partner.PrinterFontSizeNormal2) && count < 1 {
count += 1
continue
@@ -148,7 +148,7 @@ func (c *PrinterHandler) PrintCancelOrRefundOrder(ctx *jxcontext.Context, printT
return nil, nil
}
return c.PrintMsg(ctx, store.PrinterSN, store.PrinterKey, voiceType, content)
return c.PrintMsg(ctx, store.PrinterSN, "", voiceType, content)
}
func (c *PrinterHandler) EmptyPrintList(ctx *jxcontext.Context, sn, id2 string) (err error) {