- 删除网络打印机时,修复printerVendorID为0的错误
This commit is contained in:
@@ -385,6 +385,7 @@ func UpdateStore(ctx *jxcontext.Context, storeID int, payload map[string]interfa
|
||||
} else {
|
||||
store.PrinterVendorID = int(utils.Interface2Int64WithDefault(valid["printerVendorID"], 0))
|
||||
}
|
||||
if store.PrinterVendorID > 0 {
|
||||
if valid["printerSN"] == nil {
|
||||
valid["printerSN"] = store.PrinterSN
|
||||
}
|
||||
@@ -406,6 +407,7 @@ func UpdateStore(ctx *jxcontext.Context, storeID int, payload map[string]interfa
|
||||
valid["printerKey"] = newID2
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for _, v := range []string{
|
||||
"lng",
|
||||
|
||||
Reference in New Issue
Block a user