1
This commit is contained in:
@@ -85,7 +85,6 @@ func (c *DeliveryHandler) OnWaybillExcept(msg *mtpsapi.CallbackOrderExceptionMsg
|
||||
|
||||
func (c *DeliveryHandler) onWaybillMsg(msg *mtpsapi.CallbackOrderMsg) (retVal *mtpsapi.CallbackResponse) {
|
||||
order := c.callbackMsg2Waybill(msg)
|
||||
globals.SugarLogger.Debugf("===========order 1 %s", utils.Format4Output(order, false))
|
||||
switch msg.Status {
|
||||
case mtpsapi.OrderStatusWaitingForSchedule:
|
||||
data, err := api.MtpsAPI.QueryOrderStatus(msg.DeliveryID, msg.MtPeisongID)
|
||||
@@ -115,7 +114,6 @@ func (c *DeliveryHandler) onWaybillMsg(msg *mtpsapi.CallbackOrderMsg) (retVal *m
|
||||
// order2, _ := dao.GetSimpleOrder(dao.GetDB(), order.VendorOrderID)
|
||||
//查不到订单可能就是果园的订单
|
||||
if order2 == nil {
|
||||
globals.SugarLogger.Debugf("===========order 1 %s", utils.Format4Output(msg, false))
|
||||
c.pushToGy(msg)
|
||||
return mtpsapi.SuccessResponse
|
||||
}
|
||||
@@ -166,7 +164,6 @@ func pushMTPSToTiktok(msgStatus int, order *model.Waybill) {
|
||||
result.LogisticsStatus = 0
|
||||
result.LogisticsContext = model.RiderGetOrderDeliverOther
|
||||
}
|
||||
globals.SugarLogger.Debugf("===========================mtps:%s", utils.Format4Output(result, false))
|
||||
delivery.PullTiktokRiderInfo(result)
|
||||
if result.LogisticsStatus == model.WaybillStatusCourierArrived {
|
||||
result.LogisticsStatus = model.WaybillStatusDelivering
|
||||
@@ -196,7 +193,6 @@ func (c *DeliveryHandler) pushToGy(msg *mtpsapi.CallbackOrderMsg) {
|
||||
return
|
||||
}
|
||||
request.Header.Set("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8")
|
||||
globals.SugarLogger.Debugf("============request %s", utils.Format4Output(request, false))
|
||||
cl.Do(request)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user