1
This commit is contained in:
@@ -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("此二级分类只能绑定到对应一级分类下!")
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user