- record cancel reason for dada.
- revert Infof to Warnf when WaybillStatusFailed.
This commit is contained in:
@@ -68,6 +68,7 @@ func (c *WaybillController) callbackMsg2Waybill(msg *dadaapi.CallbackMsg) (retVa
|
|||||||
CourierName: msg.DmName,
|
CourierName: msg.DmName,
|
||||||
CourierMobile: msg.DmMobile,
|
CourierMobile: msg.DmMobile,
|
||||||
VendorStatus: utils.Int2Str(msg.OrderStatus),
|
VendorStatus: utils.Int2Str(msg.OrderStatus),
|
||||||
|
Remark: msg.CancelReason,
|
||||||
// StatusTime: utils.Timestamp2Time(int64(msg.UpdateTime)),
|
// StatusTime: utils.Timestamp2Time(int64(msg.UpdateTime)),
|
||||||
}
|
}
|
||||||
// dada太扯了,不同消息过来的时间格式不一样
|
// dada太扯了,不同消息过来的时间格式不一样
|
||||||
|
|||||||
@@ -316,8 +316,8 @@ func (s *DefScheduler) OnWaybillStatusChanged(bill *model.Waybill, isPending boo
|
|||||||
s.updateOrderByBill(order, bill, false)
|
s.updateOrderByBill(order, bill, false)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// 创建运单失败时,可能到这里来(比如:818874313000121),改Warnf为Infof
|
// 创建运单失败时,可能到这里来(比如:818874313000121)
|
||||||
globals.SugarLogger.Infof("OnWaybillStatusChanged Failed bill:%v shouldn't got here, order details:%v", bill, order)
|
globals.SugarLogger.Warnf("OnWaybillStatusChanged Failed bill:%v shouldn't got here, order details:%v", bill, order)
|
||||||
}
|
}
|
||||||
case model.WaybillStatusCanceled:
|
case model.WaybillStatusCanceled:
|
||||||
s.removeWaybillFromMap(savedOrderInfo, bill)
|
s.removeWaybillFromMap(savedOrderInfo, bill)
|
||||||
|
|||||||
Reference in New Issue
Block a user