style(测试跟踪): 优化格式

This commit is contained in:
fit2-zhao 2020-09-22 13:32:01 +08:00
parent 9e785552cb
commit b65a571a51
1 changed files with 1 additions and 4 deletions

View File

@ -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()) {