2222
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
// 异常配送
|
// 异常配送
|
||||||
|
|||||||
Reference in New Issue
Block a user