-f
This commit is contained in:
@@ -37,8 +37,8 @@ func ProcessQYGL9T1QRequest(ctx context.Context, params []byte, deps *processors
|
|||||||
respBytes, err := deps.XingweiService.CallAPI(ctx, projectID, reqData)
|
respBytes, err := deps.XingweiService.CallAPI(ctx, projectID, reqData)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if errors.Is(err, xingwei.ErrNotFound) {
|
if errors.Is(err, xingwei.ErrNotFound) {
|
||||||
// 查空情况,返回特定的查空错误
|
// 查空情况,返回空结果而不是错误
|
||||||
return nil, errors.Join(processors.ErrNotFound, err)
|
return []byte("{}"), nil
|
||||||
} else if errors.Is(err, xingwei.ErrDatasource) {
|
} else if errors.Is(err, xingwei.ErrDatasource) {
|
||||||
// 数据源错误
|
// 数据源错误
|
||||||
return nil, errors.Join(processors.ErrDatasource, err)
|
return nil, errors.Join(processors.ErrDatasource, err)
|
||||||
|
|||||||
Reference in New Issue
Block a user