1
This commit is contained in:
@@ -72,9 +72,12 @@ func (a *API) DelivererChange(req *request2.AlibabaAelophyOrderDelivererChangeRe
|
|||||||
//globals.SugarLogger.Debugf("进入 DelivererChange : %s", utils.Format4Output(req, false))
|
//globals.SugarLogger.Debugf("进入 DelivererChange : %s", utils.Format4Output(req, false))
|
||||||
client := ability591.NewAbility591(&a.client)
|
client := ability591.NewAbility591(&a.client)
|
||||||
|
|
||||||
data, _ := client.AlibabaAelophyOrderDelivererChange(req, a.token)
|
data, err := client.AlibabaAelophyOrderDelivererChange(req, a.token)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
if !*data.ApiResult.Success {
|
if data != nil && !*data.ApiResult.Success {
|
||||||
//globals.SugarLogger.Debugf("requestId[%s],err[%s]", data.RequestId, utils.Format4Output(data, false))
|
//globals.SugarLogger.Debugf("requestId[%s],err[%s]", data.RequestId, utils.Format4Output(data, false))
|
||||||
return fmt.Errorf(*data.ApiResult.ErrMsg)
|
return fmt.Errorf(*data.ApiResult.ErrMsg)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ import (
|
|||||||
order_orderDetail_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/order_orderDetail/response"
|
order_orderDetail_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/order_orderDetail/response"
|
||||||
order_searchList_request "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/order_searchList/request"
|
order_searchList_request "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/order_searchList/request"
|
||||||
"git.rosy.net.cn/baseapi/utils"
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
|
"git.rosy.net.cn/jx-callback/globals"
|
||||||
"math"
|
"math"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
@@ -464,6 +465,7 @@ func (a *API) CreateOrderCallback(orderStatus []byte) (map[string][]interface{},
|
|||||||
if err := json.Unmarshal([]byte(data.Data), &create); err != nil {
|
if err := json.Unmarshal([]byte(data.Data), &create); err != nil {
|
||||||
return nil, CallbackResponseErr(false)
|
return nil, CallbackResponseErr(false)
|
||||||
}
|
}
|
||||||
|
globals.SugarLogger.Debugf("============================data:= %s", utils.Format4Output(create, false))
|
||||||
callbackResult[CallbackShipmentInfoChange] = append(callbackResult[CallbackShipmentInfoChange], create)
|
callbackResult[CallbackShipmentInfoChange] = append(callbackResult[CallbackShipmentInfoChange], create)
|
||||||
default:
|
default:
|
||||||
return nil, CallbackResponseErr(false)
|
return nil, CallbackResponseErr(false)
|
||||||
|
|||||||
Reference in New Issue
Block a user