diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index c83a9657c..264c2decb 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -384,6 +384,7 @@ func UpdateStore(ctx *jxcontext.Context, storeID int, payload map[string]interfa store.PrinterSN = "" store.PrinterKey = "" store.PrinterVendorID = printerVendorID + valid["printerSN"], valid["printerKey"] = store.PrinterSN, store.PrinterKey } } if valid["printerSN"] != nil || valid["printerKey"] != nil { @@ -400,6 +401,7 @@ func UpdateStore(ctx *jxcontext.Context, storeID int, payload map[string]interfa if err = handler.RegisterPrinter(ctx, store, valid["printerSN"].(string), valid["printerKey"].(string)); err != nil { return 0, err } + valid["printerSN"], valid["printerKey"] = store.PrinterSN, store.PrinterKey } for _, v := range []string{