This commit is contained in:
邹宗楠
2022-04-01 15:21:42 +08:00
parent ec0766f65f
commit 79ad16274d

View File

@@ -45,11 +45,9 @@ type ShortStatus struct {
//#region 订单
type CallBackOrder struct {
AppId string `json:"app_id"`
Signature string `json:"signature"`
Timestamp string `json:"timestamp"`
BusinessData *OrderStatusNottify `json:"business_data"`
type OrderErr struct {
CallbackBusinessType string `json:"callback_business_type"`
Param *OrderStatusNottify `json:"param"`
}
// 订单状态
@@ -160,7 +158,17 @@ func (a *API) GetChainOrderStatusNotify(request *http.Request) (shopStatusMsg *O
}
fmt.Println("==============", string(data))
return nil, SuccessResponse
result := &OrderErr{}
if err := json.Unmarshal(data, &result); err != nil {
callbackResponse = &CallbackResponse{Code: -1}
return nil, callbackResponse
}
fmt.Println("data=======", result.Param.Param)
fmt.Println("data=======", result.Param.Param.OrderId)
fmt.Println("data=======", result.Param.Param.PartnerOrderCode)
return result.Param, SuccessResponse
}
// 异常配送