-f
This commit is contained in:
@@ -257,12 +257,11 @@ func (x *XingweiService) CallAPI(ctx context.Context, projectID string, params m
|
||||
return dataBytes, nil
|
||||
|
||||
case CodeNotFound:
|
||||
// 未查询到结果,返回查空错误
|
||||
// 未查询到结果,返回空数组
|
||||
if x.logger != nil {
|
||||
x.logger.LogError(requestID, transactionID, "xingwei_api",
|
||||
errors.Join(ErrNotFound, fmt.Errorf("未查询到结果")), params)
|
||||
x.logger.LogResponse(requestID, transactionID, "xingwei_api", httpResp.StatusCode, []byte("[]"), duration)
|
||||
}
|
||||
return nil, errors.Join(ErrNotFound, fmt.Errorf("未查询到结果"))
|
||||
return []byte("[]"), nil
|
||||
|
||||
case CodeSystemError:
|
||||
// 系统内部错误
|
||||
|
||||
Reference in New Issue
Block a user