- change jx-callback.service Requires MySQL to Wants MySQL.

- don't treat CreateWaybill fail as warning.
This commit is contained in:
gazebo
2018-08-01 10:23:59 +08:00
parent 7afa99620a
commit cd3a4b651a
2 changed files with 4 additions and 4 deletions

View File

@@ -211,9 +211,9 @@ func (c *BaseScheduler) CreateWaybill(platformVendorID int, order *model.GoodsOr
if c.IsReallyCallPlatformAPI { if c.IsReallyCallPlatformAPI {
handlerInfo := c.GetDeliveryPlatformFromVendorID(platformVendorID) handlerInfo := c.GetDeliveryPlatformFromVendorID(platformVendorID)
if handlerInfo.Use4CreateWaybill { if handlerInfo.Use4CreateWaybill {
err = utils.CallFuncLogError(func() error { if err = handlerInfo.Handler.CreateWaybill(order); err != nil {
return handlerInfo.Handler.CreateWaybill(order) globals.SugarLogger.Infof("CreateWaybill failed orderID:%s vendorID:%d with error:%v", order.VendorOrderID, platformVendorID, err)
}, "CreateWaybill orderID:%s, vendorID:%d", order.VendorOrderID, platformVendorID) }
} }
} }
return err return err

View File

@@ -1,6 +1,6 @@
[Unit] [Unit]
Description=jx-callback service Description=jx-callback service
Requires=mysql.service Wants=mysql.service
After=network.target After=network.target
After=mysql.service After=mysql.service