diff --git a/business/jxstore/cms/print.go b/business/jxstore/cms/print.go index 0f4922154..33e1f5d56 100644 --- a/business/jxstore/cms/print.go +++ b/business/jxstore/cms/print.go @@ -161,8 +161,10 @@ func UpdatePrinter(appID int, printNo string, name, sim, sound *string, volume * } } if sound != nil { - if soundMap[*sound] == "" { - return fmt.Errorf("请输入正确的提示音!print_no : %v ", printNo) + if *sound != "" { + if soundMap[*sound] == "" { + return fmt.Errorf("请输入正确的提示音!print_no : %v ", printNo) + } } if printers[0].Sound != *sound { printers[0].Sound = *sound