门店增加可调节打印机声音
This commit is contained in:
@@ -20,8 +20,8 @@ const (
|
||||
)
|
||||
|
||||
const (
|
||||
PrinterFontSizeNormal = int8(0)//正常大小
|
||||
PrinterFontSizeBig = int8(1)//两倍大小
|
||||
PrinterFontSizeNormal = int8(0) //正常大小
|
||||
PrinterFontSizeBig = int8(1) //两倍大小
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -62,6 +62,7 @@ type IPrinterHandler interface {
|
||||
|
||||
EmptyPrintList(ctx *jxcontext.Context, id1, id2 string) (err error)
|
||||
PlayText(ctx *jxcontext.Context, id1, id2, orderID, text string) (printerStatus *PrinterStatus, err error)
|
||||
SetSound(ctx *jxcontext.Context, id1, id2, sound string) (err error)
|
||||
}
|
||||
|
||||
var (
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -281,3 +281,10 @@ func (c *PrinterHandler) PlayText(ctx *jxcontext.Context, id1, id2, orderID, tex
|
||||
}
|
||||
return nil, err
|
||||
}
|
||||
|
||||
func (c *PrinterHandler) SetSound(ctx *jxcontext.Context, id1, id2, sound string) (err error) {
|
||||
if globals.EnableStoreWrite {
|
||||
err = api.YilianyunAPI.SetSound(id1, sound)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user