DeleteStoreCategory接口添加level参数
mtwm改用RetailCatSkuBatchDelete2来删除商家分类(这样可保证必须能删除)
This commit is contained in:
@@ -64,7 +64,7 @@ func (p *PurchaseHandler) UpdateStoreCategory(ctx *jxcontext.Context, vendorStor
|
||||
return err
|
||||
}
|
||||
|
||||
func (p *PurchaseHandler) DeleteStoreCategory(ctx *jxcontext.Context, vendorStoreID, vendorCatID string) (err error) {
|
||||
func (p *PurchaseHandler) DeleteStoreCategory(ctx *jxcontext.Context, vendorStoreID, vendorCatID string, level int) (err error) {
|
||||
if globals.EnableWscStoreWrite {
|
||||
err = api.WeimobAPI.UpdateClassify(utils.Str2Int64WithDefault(vendorCatID, 0), composeFakeDelName(vendorCatID), "")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user