From e87458e060695c3e919b23fb020cfa583c0a2a1b Mon Sep 17 00:00:00 2001 From: gazebo Date: Wed, 27 Mar 2019 21:50:50 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E5=9C=A8updateStore=E4=B8=AD=E5=8E=BB?= =?UTF-8?q?=E6=8E=89originalName?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/store.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 07c64a9af..0fd84ac3b 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -361,6 +361,9 @@ func UpdateStore(ctx *jxcontext.Context, storeID int, payload map[string]interfa return 0, err } valid := dao.StrictMakeMapByStructObject(payload, store, userName) + if valid["originalName"] != nil { + delete(valid, "originalName") + } if valid["name"] != nil { valid["name"] = jxutils.FormalizeName(valid["name"].(string)) }