diff --git a/business/jxstore/cms/job.go b/business/jxstore/cms/job.go index 3d2bbd14c..783bebaed 100644 --- a/business/jxstore/cms/job.go +++ b/business/jxstore/cms/job.go @@ -1320,7 +1320,9 @@ func GetAllDeliveryDetail(ctx *jxcontext.Context, vendorWaybillID, comType strin return getWaybillDetailInfoResult, err } } - getWaybillDetailInfoResult, err = api.TxAPI.GetWaybillDetailInfo(vendorWaybillID, comType) + if getWaybillDetailInfoResult, err = api.TxAPI.GetWaybillDetailInfo(vendorWaybillID, comType); err != nil { + return nil, err + } jobOrder.WaybillQueryTime = time.Now() if waybillInfo, err := json.Marshal(getWaybillDetailInfoResult); err == nil { jobOrder.WaybillInfo = string(waybillInfo)