- 删除网络打印机时,修复printerVendorID为0的错误

This commit is contained in:
gazebo
2019-04-10 11:03:17 +08:00
parent ac98b753ae
commit 0f38cadb5f

View File

@@ -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",