This commit is contained in:
suyl
2021-07-12 17:38:18 +08:00
parent a25a63b316
commit 24974efe5f

View File

@@ -43,8 +43,10 @@ func AddPrinter(appID int, printers []*model.Printer) (err error) {
Name: v.Name,
SIM: v.SIM,
Status: model.PrinterStatusOffline,
Sound: sounda, //默认一个
Volume: 4, //默认音量
Sound: v.Sound,
}
if v.Volume == 0 {
printer.Volume = 4
}
dao.WrapAddIDCULDEntity(printer, "")
if err = dao.CreateEntity(db, printer); err != nil {