- 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 {
|
||||
handlerInfo := c.GetDeliveryPlatformFromVendorID(platformVendorID)
|
||||
if handlerInfo.Use4CreateWaybill {
|
||||
err = utils.CallFuncLogError(func() error {
|
||||
return handlerInfo.Handler.CreateWaybill(order)
|
||||
}, "CreateWaybill orderID:%s, vendorID:%d", order.VendorOrderID, platformVendorID)
|
||||
if err = handlerInfo.Handler.CreateWaybill(order); err != nil {
|
||||
globals.SugarLogger.Infof("CreateWaybill failed orderID:%s vendorID:%d with error:%v", order.VendorOrderID, platformVendorID, err)
|
||||
}
|
||||
}
|
||||
}
|
||||
return err
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[Unit]
|
||||
Description=jx-callback service
|
||||
Requires=mysql.service
|
||||
Wants=mysql.service
|
||||
After=network.target
|
||||
After=mysql.service
|
||||
|
||||
|
||||
Reference in New Issue
Block a user