This commit is contained in:
邹宗楠
2023-06-30 16:42:30 +08:00
parent 1da868086f
commit 2e580d9756

View File

@@ -124,7 +124,7 @@ func (p *PurchaseHandler) CreateStoreCategory(ctx *jxcontext.Context, storeID in
Leaf: utils.Bool2Point(false),
}}
if storeCat.ParentID != model.NO {
createCategory.Param.ParentCode = utils.String2Pointer(utils.Int64ToStr(storeCat.TaoCategoryID))
createCategory.Param.ParentCode = utils.String2Pointer(storeCat.ParentVendorCatID)
}
skuCode, err := api.AddStoreCategoryInfo(createCategory)
@@ -143,7 +143,7 @@ func (p *PurchaseHandler) CreateStoreCategory(ctx *jxcontext.Context, storeID in
Leaf: utils.Bool2Point(false),
}}
if storeCat.ParentID != model.NO {
createCategoryParam.Param.ParentCode = utils.String2Pointer(utils.Int64ToStr(storeCat.TaoCategoryID))
createCategoryParam.Param.ParentCode = utils.String2Pointer(storeCat.ParentVendorCatID)
}
skuCode, err := api.AddStoreCategoryInfo(createCategoryParam)