改声音修改一下

This commit is contained in:
苏尹岚
2020-04-21 14:28:55 +08:00
parent 5206b45430
commit f35263a692

View File

@@ -803,7 +803,7 @@ func UpdateStore(ctx *jxcontext.Context, storeID int, payload map[string]interfa
if handler == nil {
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 {
return 0, err
}