1'
This commit is contained in:
@@ -955,7 +955,7 @@ func UpdateStore(ctx *jxcontext.Context, storeID int, payload map[string]interfa
|
|||||||
}
|
}
|
||||||
valid["printerBindInfo"] = ""
|
valid["printerBindInfo"] = ""
|
||||||
if handler := partner.GetPrinterPlatformFromVendorID(store.PrinterVendorID); handler != nil {
|
if handler := partner.GetPrinterPlatformFromVendorID(store.PrinterVendorID); handler != nil {
|
||||||
handler.UnregisterPrinter(ctx, store.PrinterSN, store.PrinterKey)
|
handler.UnregisterPrinter(ctx, store.PrinterSN, utils.Int2Str(store.ID))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if valid["soundPercentage"] != nil && valid["printerSN"] != nil {
|
if valid["soundPercentage"] != nil && valid["printerSN"] != nil {
|
||||||
|
|||||||
@@ -72,10 +72,9 @@ func (c *PrinterHandler) RegisterPrinter(ctx *jxcontext.Context, id1, id2, print
|
|||||||
return "", "", err
|
return "", "", err
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnregisterPrinter
|
|
||||||
func (c *PrinterHandler) UnregisterPrinter(ctx *jxcontext.Context, id1, id2 string) (err error) {
|
func (c *PrinterHandler) UnregisterPrinter(ctx *jxcontext.Context, id1, id2 string) (err error) {
|
||||||
if globals.EnableStoreWrite {
|
if globals.EnableStoreWrite {
|
||||||
err = api.JxPrintAPI.DelPrinter([]string{id1})
|
err = api.JxPrintAPI.DelPrinter([]string{id1}, id2)
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user