- more accurate error msg when failed create all waybill in CreateWaybillOnProviders
This commit is contained in:
@@ -23,7 +23,7 @@ func (c *BaseScheduler) CreateWaybillOnProviders(order *model.GoodsOrder, userNa
|
||||
bills = append(bills, bill)
|
||||
} else {
|
||||
globals.SugarLogger.Debugf("CreateWaybillOnProviders orderID:%s userName:%s vendorID:%d failed with error:%v", order.VendorOrderID, userName, courierVendorID, err)
|
||||
errList = append(errList, err.Error())
|
||||
errList = append(errList, fmt.Sprintf("%s运单创建失败,错误:%s", model.VendorChineseNames[courierVendorID], err.Error()))
|
||||
}
|
||||
}
|
||||
if len(bills) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user