改声音修改一下
This commit is contained in:
@@ -803,7 +803,7 @@ func UpdateStore(ctx *jxcontext.Context, storeID int, payload map[string]interfa
|
|||||||
if handler == nil {
|
if handler == nil {
|
||||||
return 0, fmt.Errorf("不支持的打印机厂商ID:%d", printerVendorID)
|
return 0, fmt.Errorf("不支持的打印机厂商ID:%d", printerVendorID)
|
||||||
}
|
}
|
||||||
err = handler.SetSound(ctx, store.PrinterSN, store.PrinterKey, jxutils.TranslateSoundSize(printerVendorID, valid["soundPercentage"].(int)))
|
err = handler.SetSound(ctx, store.PrinterSN, store.PrinterKey, jxutils.TranslateSoundSize(printerVendorID, int(utils.Interface2Int64WithDefault(valid["soundPercentage"], 50))))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user