From ee3e31096ac772b8ebd5ab4a621f7b03de567909 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Tue, 21 Feb 2023 11:52:45 +0800 Subject: [PATCH] 1 --- platformapi/mtwmapi/retail.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 {