1
This commit is contained in:
@@ -34,7 +34,6 @@ func (c *PrinterHandler) GetVendorID() int {
|
||||
func (c *PrinterHandler) PrintMsg(ctx *jxcontext.Context, sn, copies, voiceType, msgContent string) (printerStatus *partner.PrinterStatus, err error) {
|
||||
if sn != "" {
|
||||
if globals.EnableStoreWrite {
|
||||
globals.SugarLogger.Debugf("printMsg voiceType====%s", voiceType)
|
||||
printOrderID, err1 := api.XpyunAPI.Print(&xpyunapi.PrintRequest{
|
||||
Sn: sn,
|
||||
Content: msgContent,
|
||||
@@ -100,9 +99,7 @@ func (c *PrinterHandler) RebindPrinter(ctx *jxcontext.Context, lastBindResult *p
|
||||
}
|
||||
|
||||
func (c *PrinterHandler) PrintOrder(ctx *jxcontext.Context, store *model.Store, storeDetail *dao.StoreDetail, order *model.GoodsOrder, printType string, asfOrder *model.AfsOrder) (printerStatus *partner.PrinterStatus, err error) {
|
||||
globals.SugarLogger.Debugf("打印order参数:%s", utils.Format4Output(order, false))
|
||||
if len(order.Skus) == 0 {
|
||||
globals.SugarLogger.Debugf("order.sku为空")
|
||||
return
|
||||
}
|
||||
content := ""
|
||||
@@ -143,7 +140,6 @@ 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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user