添加打印机所属用户

This commit is contained in:
邹宗楠
2022-07-28 16:56:55 +08:00
parent 847bd705bb
commit 32e4c45ef1
2 changed files with 2 additions and 0 deletions

View File

@@ -66,6 +66,7 @@ func AddPrinter(appID int, printers []*model.Printer) (err error) {
IccID: v.IccID,
Status: model.PrinterStatusOffline,
Sound: v.Sound,
UserId: "system",
}
if v.Volume == 0 {
printer.Volume = 4