diff --git a/business/partner/purchase/yb/store_sku.go b/business/partner/purchase/yb/store_sku.go index 706ffbe7e..93fc7d673 100644 --- a/business/partner/purchase/yb/store_sku.go +++ b/business/partner/purchase/yb/store_sku.go @@ -198,7 +198,11 @@ func (p *PurchaseHandler) UpdateStoreCategory(ctx *jxcontext.Context, storeID in func (p *PurchaseHandler) DeleteStoreCategory(ctx *jxcontext.Context, storeID int, vendorStoreID, vendorCatID string, level int) (err error) { if globals.EnableYbStoreWrite { - + vendorOrgCode, err := buildYbConfigs(storeID) + if err != nil { + return err + } + err = api.YinBaoAPI.DeleteCategory(vendorOrgCode, []string{vendorCatID}) } return err } @@ -212,7 +216,7 @@ func (p *PurchaseHandler) IsErrCategoryExist(err error) (isExist bool) { } func (p *PurchaseHandler) IsErrCategoryNotExist(err error) (isNotExist bool) { - return ebaiapi.IsErrCategoryNotExist(err) + return false } func (p *PurchaseHandler) GetStoreSkusBatchSize(funcID int) (batchSize int) {