diff --git a/platformapi/tao_vegetable/sdk/ability2770/Ability2770.go b/platformapi/tao_vegetable/sdk/ability2770/Ability2770.go index 56e35db4..3c63f594 100644 --- a/platformapi/tao_vegetable/sdk/ability2770/Ability2770.go +++ b/platformapi/tao_vegetable/sdk/ability2770/Ability2770.go @@ -6,6 +6,8 @@ import ( "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability2770/request" "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability2770/response" "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/util" + "git.rosy.net.cn/baseapi/utils" + "git.rosy.net.cn/jx-callback/globals" "log" ) @@ -334,6 +336,7 @@ func (ability *Ability2770) AlibabaRetailMarketingItemdiscountActivityCreate(req if respStruct.Body == "" || len(respStruct.Body) == 0 { respStruct.Body = jsonStr } + globals.SugarLogger.Debugf("AlibabaRetailMarketingItemdiscountActivityCreate respStruct=%s", utils.Format4Output(respStruct, false)) return &respStruct, err } diff --git a/platformapi/tao_vegetable/store_skuAct.go b/platformapi/tao_vegetable/store_skuAct.go index af3049d0..3fe00f63 100644 --- a/platformapi/tao_vegetable/store_skuAct.go +++ b/platformapi/tao_vegetable/store_skuAct.go @@ -25,13 +25,14 @@ func (a *API) ActivityCreate(param domain.AlibabaRetailMarketingItemdiscountActi resp, err := act.AlibabaRetailMarketingItemdiscountActivityCreate(&request.AlibabaRetailMarketingItemdiscountActivityCreateRequest{ Param: ¶m, }, a.token) - globals.SugarLogger.Debugf("ActivityCreate:requestId:" + resp.RequestId + "msg:" + *resp.Result.ErrorMessage) + globals.SugarLogger.Debugf("ActivityCreate:resp %s", utils.Format4Output(&resp, false)) if err != nil { return 0, err } if resp.Result.ErrorMessage != nil { return 0, fmt.Errorf("ActivityCreate:requestId:" + resp.RequestId + "msg:" + *resp.Result.ErrorMessage) } + globals.SugarLogger.Debugf("ActivityCreate actID=%d", utils.Pointer2Int64(resp.Result.Data)) return utils.Pointer2Int64(resp.Result.Data), nil } @@ -47,7 +48,7 @@ func (a *API) ActivitySkuCreate(param domain.AlibabaRetailMarketingItemdiscountA resp, err := act.AlibabaRetailMarketingItemdiscountActivitySkuAdd(&request.AlibabaRetailMarketingItemdiscountActivitySkuAddRequest{ Param: ¶m, }, a.token) - globals.SugarLogger.Debugf("ActivitySkuCreate:requestId:" + resp.RequestId + "msg:" + *resp.Result.ErrorMessage) + globals.SugarLogger.Debugf("ActivitySkuCreate:resp %s", utils.Format4Output(&resp, false)) if err != nil { return err, nil, *resp.Result.FailedSkuCodes }