- pickup error as info.

This commit is contained in:
gazebo
2018-08-01 17:55:01 +08:00
parent ab6efb48ab
commit f0ea5f1186
2 changed files with 2 additions and 2 deletions

View File

@@ -155,7 +155,7 @@ func init() {
Timeout: 1 * time.Second,
TimeoutGap: 0,
TimeoutAction: func(savedOrderInfo *WatchOrderInfo) (err error) {
if savedOrderInfo.storeDeliveryType == scheduler.StoreDeliveryTypeByStore { // 自配商家使用
if savedOrderInfo.storeDeliveryType == scheduler.StoreDeliveryTypeByStore { // 自配商家使用
return sch.createWaybillOn3rdProviders(savedOrderInfo, nil)
}
return nil

View File

@@ -148,7 +148,7 @@ func (c *BaseScheduler) PickupGoods(order *model.GoodsOrder) (err error) {
globals.SugarLogger.Infof("PickupGoods orderID:%s", order.VendorOrderID)
if order.Status == model.OrderStatusAccepted {
if c.IsReallyCallPlatformAPI {
err = utils.CallFuncLogError(func() error {
err = utils.CallFuncLogErrorWithInfo(func() error {
return c.GetPurchasePlatformFromVendorID(order.VendorID).PickupGoods(order)
}, "PickupGoods orderID:%s", order.VendorOrderID)
}