- PrintOrderByOrder只有在prod下才生效

This commit is contained in:
gazebo
2019-04-16 16:15:10 +08:00
parent 844cc70c1e
commit 3b8209906f

View File

@@ -32,7 +32,9 @@ func PrintOrderByOrder(ctx *jxcontext.Context, order *model.GoodsOrder) (printRe
PrintResult: partner.PrintResultNoPrinter,
}, nil
} else {
return handler.PrintOrder(ctx, store, order)
if globals.EnableStoreWrite {
printResult, err = handler.PrintOrder(ctx, store, order)
}
}
}
if err != nil {