diff --git a/backend/src/main/java/io/metersphere/api/jmeter/APIBackendListenerClient.java b/backend/src/main/java/io/metersphere/api/jmeter/APIBackendListenerClient.java index 2b765169fe..489d58abfb 100644 --- a/backend/src/main/java/io/metersphere/api/jmeter/APIBackendListenerClient.java +++ b/backend/src/main/java/io/metersphere/api/jmeter/APIBackendListenerClient.java @@ -356,6 +356,8 @@ public class APIBackendListenerClient extends AbstractBackendListenerClient impl return protocol.toUpperCase(); } return RequestType.DUBBO; + } else if (StringUtils.contains(result.getResponseHeaders(), "url:jdbc")) { + return "SQL"; } else { // Http Method String method = StringUtils.substringBefore(body, " "); diff --git a/frontend/src/business/components/api/automation/report/components/ResponseText.vue b/frontend/src/business/components/api/automation/report/components/ResponseText.vue index d732c953c5..1122eb1afa 100644 --- a/frontend/src/business/components/api/automation/report/components/ResponseText.vue +++ b/frontend/src/business/components/api/automation/report/components/ResponseText.vue @@ -45,8 +45,8 @@ @@ -110,7 +110,7 @@ computed: { isSqlType() { - return (this.requestType === RequestFactory.TYPES.SQL && this.response.responseCode === '200'); + return ((this.requestType === RequestFactory.TYPES.SQL || this.request.method === RequestFactory.TYPES.SQL) && this.response.responseCode === '200'&& this.mode === 'table'); } } }