From 6033352c6291d2189a8883ee8dfab7de3417d752 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Wed, 22 Dec 2021 18:50:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):=20?= =?UTF-8?q?=E5=AF=BC=E5=85=A5dubbo=E6=8E=A5=E5=8F=A3=EF=BC=8C=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E6=A8=A1=E5=9D=97=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1009160 --user=lyh 【接口定义】导入dubbo接口,没有模块信息 https://www.tapd.cn/55049933/s/1085515 --- .../api/dto/definition/parse/ApiDefinitionImportUtil.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/main/java/io/metersphere/api/dto/definition/parse/ApiDefinitionImportUtil.java b/backend/src/main/java/io/metersphere/api/dto/definition/parse/ApiDefinitionImportUtil.java index b6ccfc2d6b..4452c4bfd6 100644 --- a/backend/src/main/java/io/metersphere/api/dto/definition/parse/ApiDefinitionImportUtil.java +++ b/backend/src/main/java/io/metersphere/api/dto/definition/parse/ApiDefinitionImportUtil.java @@ -61,6 +61,7 @@ public class ApiDefinitionImportUtil { if (parentModule != null) { module = apiModuleService.getNewModule(name, projectId, parentModule.getLevel() + 1); module.setParentId(parentModule.getId()); + module.setProtocol(parentModule.getProtocol()); } else { module = apiModuleService.getNewModule(name, projectId, 1); } @@ -121,6 +122,7 @@ public class ApiDefinitionImportUtil { if (parentModule != null) { module = apiModuleService.getNewModule(name, projectId, parentModule.getLevel() + 1); module.setParentId(parentModule.getId()); + module.setProtocol(parentModule.getProtocol()); } else { module = apiModuleService.getNewModule(name, projectId, 1); }