改打印机声音

This commit is contained in:
苏尹岚
2020-05-06 10:16:43 +08:00
parent b94ddadd02
commit 3c8b1aceec

View File

@@ -798,7 +798,7 @@ func UpdateStore(ctx *jxcontext.Context, storeID int, payload map[string]interfa
handler.UnregisterPrinter(ctx, store.PrinterSN, store.PrinterKey)
}
}
if valid["soundPercentage"] != nil {
if valid["soundPercentage"] != nil && valid["printerSN"] != nil {
handler := partner.GetPrinterPlatformFromVendorID(printerVendorID)
if handler == nil {
return 0, fmt.Errorf("不支持的打印机厂商ID:%d", printerVendorID)