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