1
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user