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 订单 //#region 订单
type CallBackOrder struct { type OrderErr struct {
AppId string `json:"app_id"` CallbackBusinessType string `json:"callback_business_type"`
Signature string `json:"signature"` Param *OrderStatusNottify `json:"param"`
Timestamp string `json:"timestamp"`
BusinessData *OrderStatusNottify `json:"business_data"`
} }
// 订单状态 // 订单状态
@@ -160,7 +158,17 @@ func (a *API) GetChainOrderStatusNotify(request *http.Request) (shopStatusMsg *O
} }
fmt.Println("==============", string(data)) 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
} }
// 异常配送 // 异常配送