- 绑定打印机时清空打印队列
This commit is contained in:
@@ -546,6 +546,7 @@ func UpdateStore(ctx *jxcontext.Context, storeID int, payload map[string]interfa
|
||||
if err = err2; err != nil {
|
||||
return 0, err
|
||||
}
|
||||
handler.EmptyPrintList(ctx, newID1, newID2)
|
||||
if newID1 != "" {
|
||||
valid["printerSN"] = newID1
|
||||
}
|
||||
@@ -687,6 +688,7 @@ func CreateStore(ctx *jxcontext.Context, storeExt *StoreExt, userName string) (i
|
||||
if err = err2; err != nil {
|
||||
return 0, err
|
||||
}
|
||||
handler.EmptyPrintList(ctx, newID1, newID2)
|
||||
if newID1 != "" {
|
||||
store.PrinterSN = newID1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user