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