- change jx-callback.service Requires MySQL to Wants MySQL.
- don't treat CreateWaybill fail as warning.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user