This commit is contained in:
邹宗楠
2023-06-30 16:31:50 +08:00
parent e9ac5ca2de
commit 1da868086f

View File

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