This commit is contained in:
邹宗楠
2022-06-04 13:46:14 +08:00
parent bb6e475341
commit 9a0ca2d996
3 changed files with 3 additions and 1 deletions

View File

@@ -263,7 +263,7 @@ func (c *PrinterHandler) PrintOrder(ctx *jxcontext.Context, store *model.Store,
var count = 0
for {
printerStatus, err := c.PrintMsg(ctx, store.PrinterSN, store.PrinterKey, order.VendorOrderID, content)
if (store.PrinterFontSize == partner.PrinterFontSizeBig2 || store.PrinterFontSize == partner.PrinterFontSizeNormal2) && count < 1 {
if (store.PrinterFontSize == partner.PrinterFontSizeBig2 || store.PrinterFontSize == partner.PrinterFontSizeNormal2) && count <= 1 {
count = count + 1
continue
} else {