diff --git a/backend/src/main/java/io/metersphere/track/issue/ZentaoPlatform.java b/backend/src/main/java/io/metersphere/track/issue/ZentaoPlatform.java index 19e75f2043..9a74a099be 100644 --- a/backend/src/main/java/io/metersphere/track/issue/ZentaoPlatform.java +++ b/backend/src/main/java/io/metersphere/track/issue/ZentaoPlatform.java @@ -381,6 +381,10 @@ public class ZentaoPlatform extends AbstractIssuePlatform { // upload zentao String id = uploadFile(mdImage.getBody()); // todo delete local file + int index = fileName.lastIndexOf("."); + if (index != -1) { + fileName = fileName.substring(0, index); + } // replace id zentaoSteps = zentaoSteps.replaceAll(Pattern.quote(fileName), id); }