updateprinter
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user