- elm self delivery support.
This commit is contained in:
@@ -278,11 +278,9 @@ func (c *OrderController) SelfDeliverDelievered(order *model.GoodsOrder) (err er
|
||||
return api.ElmAPI.CompleteDeliveryBySelf(order.VendorOrderID, order.ConsigneeMobile)
|
||||
}
|
||||
|
||||
func (c *OrderController) GetStatusActionConfig(statusType, status int) *scheduler.StatusActionConfig {
|
||||
func (c *OrderController) GetStatusActionTimeout(statusType, status int) time.Duration {
|
||||
if statusType == scheduler.TimerStatusTypeOrder && status == model.OrderStatusNew {
|
||||
return &scheduler.StatusActionConfig{
|
||||
Timeout: acceptOrderDelay, // 饿了么没有拣货状态,接单后就为拣货完成,所以要延迟接单,否则门店来不及备货
|
||||
}
|
||||
return acceptOrderDelay // 饿了么开了专送店的订单没有拣货状态,接单后就为拣货完成,所以要延迟接单,否则门店来不及备货
|
||||
}
|
||||
return nil
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user