From f156cfcd1d58815d97e43d282e770eddd02afab3 Mon Sep 17 00:00:00 2001 From: gazebo Date: Thu, 12 Dec 2019 17:13:49 +0800 Subject: [PATCH] up --- business/jxstore/cms/sync2.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/business/jxstore/cms/sync2.go b/business/jxstore/cms/sync2.go index 260b32ad9..0d28c262a 100644 --- a/business/jxstore/cms/sync2.go +++ b/business/jxstore/cms/sync2.go @@ -48,6 +48,9 @@ func syncCategories(ctx *jxcontext.Context, db *dao.DaoDB, parentTask tasksch.IT if catVendorInfo.Level != 1 && catVendorInfo.ParentVendorCatID == "" { return nil, fmt.Errorf("%d的父目录%d没有同步", catVendorInfo.ID, catVendorInfo.ParentID) } + if catVendorInfo.MapID == 0 { + return nil, fmt.Errorf("分类:%d的数据异常", catVendorInfo.ID) + } if multiStoresHandler, ok := partner.GetPurchasePlatformFromVendorID(catVendorInfo.VendorID).(partner.IMultipleStoresHandler); ok { if model.IsSyncStatusDelete(catVendorInfo.CatSyncStatus) { //删除 if !dao.IsVendorThingIDEmpty(catVendorInfo.VendorCatID) &&