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