fix
This commit is contained in:
@@ -894,14 +894,14 @@ func (a *ApiRequestService) ProcessCAR059Request(ctx context.Context, params []b
|
||||
logx.Infof("车辆维保记录查询任务,订单号: %s, 未查询到结果,需要重试", orderID.String())
|
||||
|
||||
// 检查重试次数
|
||||
maxRetries := 10
|
||||
maxRetries := 56
|
||||
if retryCount >= maxRetries {
|
||||
return nil, fmt.Errorf("车辆维保记录查询任务已达最大重试次数 %d,停止重试,订单号: %s",
|
||||
maxRetries, orderID.String())
|
||||
}
|
||||
|
||||
// 固定延迟时间为15秒
|
||||
fixedDelay := 15 * time.Second
|
||||
fixedDelay := 30 * time.Second
|
||||
|
||||
// 检查ctx是否已经有超时
|
||||
deadline, hasDeadline := ctx.Deadline()
|
||||
@@ -946,8 +946,8 @@ func (a *ApiRequestService) ProcessCAR059Request(ctx context.Context, params []b
|
||||
}
|
||||
return nil, fmt.Errorf("车辆维保记录结果查询失败: %+v", err)
|
||||
}
|
||||
logx.Infof("车辆维保记录查询任务完成,订单号: %s, 结果数据长度: %d",
|
||||
orderID.String(), len(resp))
|
||||
logx.Infof("车辆维保记录查询任务完成,订单号: %s",
|
||||
orderID.String())
|
||||
return &APIInternalResult{
|
||||
Data: resp,
|
||||
}, nil
|
||||
@@ -1415,7 +1415,7 @@ func (a *ApiRequestService) ProcessCOM187Request(ctx context.Context, params []b
|
||||
"keyword": name.String(),
|
||||
}
|
||||
resp, err := a.yushanService.request("COM187", request)
|
||||
if err != nil {
|
||||
if err != nil && err != ErrEmptyResult {
|
||||
return nil, fmt.Errorf("出境限制查询失败: %+v", err)
|
||||
}
|
||||
return &APIInternalResult{
|
||||
|
||||
Reference in New Issue
Block a user