diff --git a/platformapi/mtwmapi/retail.go b/platformapi/mtwmapi/retail.go index ff754d98..73b2b9da 100644 --- a/platformapi/mtwmapi/retail.go +++ b/platformapi/mtwmapi/retail.go @@ -205,7 +205,9 @@ func (a *API) RetailCatList(poiCode string) (retailCatList []*RetailCategoryInfo result, err := a.AccessAPI("retailCat/list", true, map[string]interface{}{ KeyAppPoiCode: poiCode, }) - globals.SugarLogger.Debugf("RetailCatList==========err %s", err.Error()) + if err != nil { + globals.SugarLogger.Debugf("RetailCatList==========err %v", err) + } globals.SugarLogger.Debugf("result==========err %s", utils.Format4Output(result, false)) if err == nil {