This commit is contained in:
ReaJason
2026-01-12 02:12:34 +08:00
parent c51b4e11dc
commit e9dfd5085e
@@ -56,8 +56,7 @@ public class ResponseBodyGenerator extends ByteBuddyShellGenerator<ResponseBodyC
.to(runnerClass) .to(runnerClass)
.on(named("run"))); .on(named("run")));
String base64Bytes = probeContentConfig.getBase64Bytes(); String base64Bytes = probeContentConfig.getBase64Bytes();
if (ProbeContent.Bytecode.equals(probeConfig.getProbeContent()) if (StringUtils.isNotBlank(base64Bytes)) {
|| StringUtils.isNotBlank(base64Bytes)) {
builder = builder.method(named("getDataFromReq")).intercept(FixedValue.value(base64Bytes)); builder = builder.method(named("getDataFromReq")).intercept(FixedValue.value(base64Bytes));
} else { } else {
builder = builder.visit(MethodCallReplaceVisitorWrapper.newInstance("getDataFromReq", builder = builder.visit(MethodCallReplaceVisitorWrapper.newInstance("getDataFromReq",