This commit is contained in:
邹宗楠
2022-04-01 15:43:07 +08:00
parent 79ad16274d
commit 7cb514aa1e

View File

@@ -157,18 +157,28 @@ func (a *API) GetChainOrderStatusNotify(request *http.Request) (shopStatusMsg *O
return nil, callbackResponse
}
//if true { // 第二次平台分配骑手
fmt.Println("==============", string(data))
result := &OrderErr{}
result := &OrderStatusNottify{}
if err := json.Unmarshal(data, &result); err != nil {
callbackResponse = &CallbackResponse{Code: -1}
return nil, callbackResponse
}
fmt.Println("data=======", result.Param)
fmt.Println("data=======", result.Param.OrderId)
fmt.Println("data=======", result.Param.PartnerOrderCode)
//} else { // 第一次,平台确认收取订单
// result := &OrderErr{}
// if err := json.Unmarshal(data, &result); err != nil {
// callbackResponse = &CallbackResponse{Code: -1}
// return nil, callbackResponse
// }
// fmt.Println("data=======", result.Param)
// fmt.Println("data=======", result.Param.Param.OrderId)
// fmt.Println("data=======", result.Param.Param.PartnerOrderCode)
//}
fmt.Println("data=======", result.Param.Param)
fmt.Println("data=======", result.Param.Param.OrderId)
fmt.Println("data=======", result.Param.Param.PartnerOrderCode)
return result.Param, SuccessResponse
return result, SuccessResponse
}
// 异常配送