1
This commit is contained in:
@@ -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.Int2Str(storeCat.ParentID))
|
||||
createCategory.Param.ParentCode = utils.String2Pointer(utils.Int64ToStr(storeCat.TaoCategoryID))
|
||||
}
|
||||
|
||||
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.Int2Str(storeCat.ParentID))
|
||||
createCategoryParam.Param.ParentCode = utils.String2Pointer(utils.Int64ToStr(storeCat.TaoCategoryID))
|
||||
}
|
||||
|
||||
skuCode, err := api.AddStoreCategoryInfo(createCategoryParam)
|
||||
|
||||
Reference in New Issue
Block a user