This commit is contained in:
邹宗楠
2023-03-21 16:47:12 +08:00
parent 34d4e20229
commit 94d6db383a
2 changed files with 2 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ func (c *PrinterHandler) GetVendorID() int {
}
func (c *PrinterHandler) PrintMsg(ctx *jxcontext.Context, printSn, orderSeq, msgTitle, msgContent string) (printerStatus *partner.PrinterStatus, err error) {
if printSn != "" && globals.EnableStoreWrite {
if printSn != "" {
printSn = strings.Split(printSn, "_")[0]
if _, err := api.JxPrintAPI.DoPrint(printSn, msgContent, utils.Str2Int(orderSeq)); err == nil {
return c.GetPrinterStatus(ctx, printSn, "")