diff --git a/api/continuity_report.go b/api/continuity_report.go index bc26731..9ed9660 100644 --- a/api/continuity_report.go +++ b/api/continuity_report.go @@ -129,7 +129,7 @@ func reportSingleDevice(ctx context.Context, result dto.ContinuityCheckResult) e } // 检查业务响应码 - if response.Code != 0 { + if response.Code != 0 && response.Code != 200 { errMsg := fmt.Sprintf("上报失败: code=%d, msg=%s", response.Code, response.Msg) span.SetAttributes(attribute.String("error", errMsg)) span.SetStatus(codes.Error, "上报失败")