From af1dbe225c53805874ae581a7c1a9100fce52aaf Mon Sep 17 00:00:00 2001 From: gazebo Date: Tue, 9 Apr 2019 13:41:41 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E5=9B=A0=E4=B8=BA=E5=9C=A8UpdateStore?= =?UTF-8?q?=E6=98=AF=E5=AD=98=E7=9A=84valid=EF=BC=8C=E6=89=80=E4=BB=A5?= =?UTF-8?q?=E5=9C=A8=E8=B0=83=E7=94=A8=E6=89=93=E5=8D=B0=E6=9C=BA=E5=A4=84?= =?UTF-8?q?=E7=90=86=E7=9B=B8=E5=85=B3=E7=9A=84=E5=87=BD=E6=95=B0=E5=90=8E?= =?UTF-8?q?=E6=8C=89store=E6=9B=B4=E6=96=B0valid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/store.go | 2 ++ 1 file changed, 2 insertions(+) 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{