From c5e41119c3f3c9e997a0682a83fd278a90af213b Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Thu, 1 Jul 2021 15:51:03 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96):=20=E4=BF=AE=E5=A4=8D=E5=AF=BC=E5=85=A5=E5=9C=BA?= =?UTF-8?q?=E6=99=AF=E5=90=8E=EF=BC=8C=E9=87=8D=E6=96=B0=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E5=8E=9F=E5=9C=BA=E6=99=AF=EF=BC=8C=E5=BC=95=E7=94=A8=E7=9A=84?= =?UTF-8?q?=E5=9C=BA=E6=99=AF=E4=BC=9A=E6=98=BE=E7=A4=BA=E5=B7=B2=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/metersphere/api/service/TcpApiParamService.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/backend/src/main/java/io/metersphere/api/service/TcpApiParamService.java b/backend/src/main/java/io/metersphere/api/service/TcpApiParamService.java index 65e9403276..a7d1a5be48 100644 --- a/backend/src/main/java/io/metersphere/api/service/TcpApiParamService.java +++ b/backend/src/main/java/io/metersphere/api/service/TcpApiParamService.java @@ -2,8 +2,7 @@ package io.metersphere.api.service; import io.metersphere.api.dto.automation.TcpTreeTableDataStruct; import io.metersphere.api.dto.automation.parse.TcpTreeTableDataParser; -import io.metersphere.api.dto.definition.*; -import io.metersphere.api.dto.definition.request.MsScenario; +import io.metersphere.api.dto.definition.SaveApiDefinitionRequest; import io.metersphere.api.dto.definition.request.MsTestElement; import io.metersphere.api.dto.definition.request.sampler.MsTCPSampler; import org.apache.commons.lang3.StringUtils; @@ -11,7 +10,6 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import java.util.List; -import java.util.UUID; /** * @author song.tianyang @@ -66,8 +64,6 @@ public class TcpApiParamService { if(testElement != null){ if(testElement instanceof MsTCPSampler){ this.handleTcpRequest(testElement); - }else if (testElement instanceof MsScenario) { - testElement.setId(UUID.randomUUID().toString()); } if(testElement.getHashTree() != null){