From b52bd5556fb5b0f4e0cfebf7bae8a4142417b7cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Fri, 2 Jun 2023 17:50:58 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index fa893049c..0d30c49f6 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -3728,7 +3728,7 @@ func UpdateStoreCategoryMap(ctx *jxcontext.Context, ID int, storeCategoryMap *mo if storeCategoryMap.Level == 2 { cat2, _ := dao.GetCategories(db, -1, 0, []int{storeCategoryMap.CategoryID}, false) if len(cat2) > 0 { - if cat2[0].ParentID != storeCategoryMap.ParentID { + if cat2[0].ParentID != storeCategoryMap.ParentID && cat2[0].ParentID != model.NO { return 0, fmt.Errorf("此二级分类只能绑定到对应一级分类下!") }