修复 usage 详情 body 引用解包

This commit is contained in:
MMEXA
2026-07-10 00:23:31 +08:00
parent d2ea437c1c
commit f07eb25cfc
4 changed files with 166 additions and 9 deletions
@@ -58,7 +58,9 @@ pub(super) async fn admin_usage_resolve_body_value(
| Some(UsageBodyCaptureState::Unavailable)
| Some(UsageBodyCaptureState::None) => return Ok(None),
Some(UsageBodyCaptureState::Inline) | Some(UsageBodyCaptureState::Truncated) => {
return Ok(inline_body.cloned());
if inline_body.is_some() {
return Ok(inline_body.cloned());
}
}
Some(UsageBodyCaptureState::Reference) | None => {}
}