From 45e784e36589edd4b353d530c7ac2494d958c91e Mon Sep 17 00:00:00 2001 From: gazebo Date: Mon, 18 Mar 2019 10:36:13 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E5=BF=BD=E7=95=A5=E4=BA=AC=E4=B8=9C?= =?UTF-8?q?=E9=94=99=E8=AF=AF=EF=BC=9A=E5=BA=97=E5=86=85=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E6=9C=AA=E4=BF=AE=E6=94=B9=EF=BC=8C=E6=97=A0?= =?UTF-8?q?=E9=9C=80=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/sync.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/business/jxstore/cms/sync.go b/business/jxstore/cms/sync.go index c58d2fcee..a5fa53a65 100644 --- a/business/jxstore/cms/sync.go +++ b/business/jxstore/cms/sync.go @@ -141,6 +141,9 @@ func (v *VendorSync) syncCategories(ctx *jxcontext.Context, parentTask tasksch.I updateFields = append(updateFields, dao.GetVendorThingIDStructField(model.VendorNames[multiStoresHandler.GetVendorID()])) } else if (syncStatus & model.SyncFlagModifiedMask) != 0 { // 修改 err = multiStoresHandler.UpdateCategory(db, cat, userName) + if intErr, ok := err.(*utils.ErrorWithCode); ok && intErr.IntCode() == -3 { + err = nil + } } if err == nil { jxutils.SetObjFieldByName(cat, syncStatusFieldName, int8(0))