+CanSwitch2SelfDeliver,美团预定单是不能转自送的

减小转自送失败尝试时间间隙至3秒(以免出现不能取消三方运单的情况)
This commit is contained in:
gazebo
2019-11-28 14:18:52 +08:00
parent 2c21ea4385
commit 45827aceb5
6 changed files with 43 additions and 14 deletions

View File

@@ -190,6 +190,10 @@ func (p *BasePurchasePlatform) GetStatusActionTimeout(order *model.GoodsOrder, s
return params
}
func (c *BasePurchasePlatform) CanSwitch2SelfDeliver(order *model.GoodsOrder) (isCan bool, err error) {
return true, nil
}
func init() {
PurchasePlatformHandlers = make(map[int]IPurchasePlatformHandler)
PurchaseOrderHandlers = make(map[int]IPurchasePlatformOrderHandler)