门店增加可调节打印机声音

This commit is contained in:
苏尹岚
2020-04-21 14:08:19 +08:00
parent febda332ad
commit 2a1863c144
5 changed files with 42 additions and 3 deletions

View File

@@ -269,3 +269,10 @@ func (c *PrinterHandler) EmptyPrintList(ctx *jxcontext.Context, id1, id2 string)
func (c *PrinterHandler) PlayText(ctx *jxcontext.Context, id1, id2, orderID, text string) (printerStatus *partner.PrinterStatus, err error) {
return c.GetPrinterStatus(ctx, id1, id2)
}
func (c *PrinterHandler) SetSound(ctx *jxcontext.Context, id1, id2, sound string) (err error) {
if globals.EnableStoreWrite {
err = api.FeieAPI.SetSound(id1, sound)
}
return err
}