- 重构同步商品时,商品或分类不存在或已存在的错误处理

This commit is contained in:
gazebo
2019-07-11 21:54:51 +08:00
parent 36685f7a58
commit b6ce75191b
3 changed files with 32 additions and 41 deletions

View File

@@ -158,8 +158,11 @@ func (p *PurchaseHandler) DeleteStoreSkus(ctx *jxcontext.Context, storeID int, v
} else {
err = api.MtwmAPI.RetailCatSkuBatchDelete(vendorStoreID, nil, nil, partner.BareStoreSkuInfoList(storeSkuList).GetVendorSkuIDList())
}
if mtwmapi.IsErrSkuNotExist(err) {
err = nil
}
}
return ignoreNoAppFoodErr(err)
return err
}
func (p *PurchaseHandler) UpdateStoreSkusStatus(ctx *jxcontext.Context, storeID int, vendorStoreID string, storeSkuList []*partner.BareStoreSkuInfo) (err error) {