From f35263a6920cc2639af5f3eae67d00bf85d752f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Tue, 21 Apr 2020 14:28:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=A3=B0=E9=9F=B3=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }