1
This commit is contained in:
@@ -125,6 +125,7 @@ func (p *PurchaseHandler) CreateStoreCategory(ctx *jxcontext.Context, storeID in
|
|||||||
}}
|
}}
|
||||||
if storeCat.ParentID != model.NO {
|
if storeCat.ParentID != model.NO {
|
||||||
createCategory.Param.ParentCode = utils.String2Pointer(storeCat.ParentVendorCatID)
|
createCategory.Param.ParentCode = utils.String2Pointer(storeCat.ParentVendorCatID)
|
||||||
|
createCategory.Param.Leaf = utils.Bool2Point(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
skuCode, err := api.AddStoreCategoryInfo(createCategory)
|
skuCode, err := api.AddStoreCategoryInfo(createCategory)
|
||||||
@@ -144,6 +145,7 @@ func (p *PurchaseHandler) CreateStoreCategory(ctx *jxcontext.Context, storeID in
|
|||||||
}}
|
}}
|
||||||
if storeCat.ParentID != model.NO {
|
if storeCat.ParentID != model.NO {
|
||||||
createCategoryParam.Param.ParentCode = utils.String2Pointer(storeCat.ParentVendorCatID)
|
createCategoryParam.Param.ParentCode = utils.String2Pointer(storeCat.ParentVendorCatID)
|
||||||
|
createCategoryParam.Param.Leaf = utils.Bool2Point(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
skuCode, err := api.AddStoreCategoryInfo(createCategoryParam)
|
skuCode, err := api.AddStoreCategoryInfo(createCategoryParam)
|
||||||
|
|||||||
Reference in New Issue
Block a user