This commit is contained in:
邹宗楠
2024-08-27 14:05:50 +08:00
parent 156a599da9
commit 299c1e4974
3 changed files with 34 additions and 1 deletions

View File

@@ -267,7 +267,15 @@ func (c *PrinterHandler) PrintOrder(ctx *jxcontext.Context, store *model.Store,
}
orderSel := utils.Int2Str(order.VendorID) + utils.Int2Str(order.OrderSeq)
return c.PrintMsg(ctx, store.PrinterSN, orderSel, "", string(orderPrint))
if order.VendorOrderID == "3301223263215186716" {
globals.SugarLogger.Debugf("----------------:%s", string(orderPrint))
}
dataSuls, err := c.PrintMsg(ctx, store.PrinterSN, orderSel, "", string(orderPrint))
if order.VendorOrderID == "3301223263215186716" {
globals.SugarLogger.Debugf("----------------:%s", utils.Format4Output(dataSuls, false))
globals.SugarLogger.Debugf("----------------:%v", err)
}
return
}
func (c *PrinterHandler) PrintCancelOrRefundOrder(ctx *jxcontext.Context, printType int, store *model.Store, storeDetail *dao.StoreDetail, order *model.GoodsOrder) (printerStatus *partner.PrinterStatus, err error) {