diff --git a/platformapi/mtwmapi/retail.go b/platformapi/mtwmapi/retail.go index e30e3cdb..aee4e669 100644 --- a/platformapi/mtwmapi/retail.go +++ b/platformapi/mtwmapi/retail.go @@ -184,6 +184,8 @@ func (a *API) RetailCatUpdate(poiCode, catName string, updateParams *Param4Updat // 删除商品分类 // 当分类下存在子级分类或商品时,不允许直接删除此分类。 func (a *API) RetailCatDelete(poiCode, code, name string) (err error) { + globals.SugarLogger.Debugf("RetailCatDelete======poiCode %s", poiCode) + globals.SugarLogger.Debugf("RetailCatDelete======name %s", name) params := map[string]interface{}{ KeyAppPoiCode: poiCode, } @@ -193,6 +195,9 @@ func (a *API) RetailCatDelete(poiCode, code, name string) (err error) { params["category_name"] = name } _, err = a.AccessAPI("retailCat/delete", false, params) + if err != nil { + globals.SugarLogger.Debugf("RetailCatDelete======err %s", err.Error()) + } return err }