diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 52f944102..18dea3f6d 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -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 }