From b65a571a51b8b5dc45016542bb44525d5cd6bbc3 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Tue, 22 Sep 2020 13:32:01 +0800 Subject: [PATCH] =?UTF-8?q?style(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/io/metersphere/xmind/XmindCaseParser.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/backend/src/main/java/io/metersphere/xmind/XmindCaseParser.java b/backend/src/main/java/io/metersphere/xmind/XmindCaseParser.java index 0cf380bd99..eef17be4a7 100644 --- a/backend/src/main/java/io/metersphere/xmind/XmindCaseParser.java +++ b/backend/src/main/java/io/metersphere/xmind/XmindCaseParser.java @@ -1,6 +1,5 @@ package io.metersphere.xmind; -import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import io.metersphere.base.domain.TestCaseWithBLOBs; @@ -235,9 +234,7 @@ public class XmindCaseParser { StringBuffer processBuffer = new StringBuffer(); try { // 获取思维导图内容 - String content = XmindParser.parseJson(multipartFile); - JsonRootBean root = JSON.parseObject(content, JsonRootBean.class); - + JsonRootBean root = XmindParser.parseObject(multipartFile); if (root != null && root.getRootTopic() != null && root.getRootTopic().getChildren() != null) { // 判断是模块还是用例 for (Attached item : root.getRootTopic().getChildren().getAttached()) {