feat: 完善 Rock 发货异常闭环与绑定判定
This commit is contained in:
@@ -65,6 +65,10 @@ func (s *FulfillmentService) markProcessingTimeout(id uint, timeout time.Duratio
|
||||
if !processingTimedOut(&order, timeout, now) {
|
||||
return nil
|
||||
}
|
||||
// Rock pending 已经提交上游,由 Rock 确认任务继续轮询,不能按“提交中断”标记失败。
|
||||
if deliveryPendingUpstream(&order) {
|
||||
return nil
|
||||
}
|
||||
if err := validateOrderStatusTransition(&order, model.OrderStatusShipFailed, fulfillmentTransitionTimeout); err != nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user