From 3ffa7d684de11279f32f1f1da74585d568bb22b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=AD=E6=BD=87?= <1576730710@qq.com> Date: Wed, 2 Jul 2025 15:46:42 +0800 Subject: [PATCH] [store] Fix the problem of plugin deployment failure caused by plugin version --- .../jade/store/tool/upload/utils/FormatFileUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/plugins/store-tool-uploader/src/main/java/modelengine/jade/store/tool/upload/utils/FormatFileUtils.java b/store/plugins/store-tool-uploader/src/main/java/modelengine/jade/store/tool/upload/utils/FormatFileUtils.java index c5c65872c4..081937381a 100644 --- a/store/plugins/store-tool-uploader/src/main/java/modelengine/jade/store/tool/upload/utils/FormatFileUtils.java +++ b/store/plugins/store-tool-uploader/src/main/java/modelengine/jade/store/tool/upload/utils/FormatFileUtils.java @@ -224,7 +224,7 @@ private static String buildSerializerErrorPath(MismatchedInputException ex) { public static File renameFile(File sourceFile) { String sourceFileName = sourceFile.getName(); File targetFile = new File(sourceFile.getParent(), - FileUtils.ignoreExtension(sourceFileName) + "_" + System.currentTimeMillis() + FileUtils.extension( + FileUtils.ignoreExtension(sourceFileName) + "-" + System.currentTimeMillis() + FileUtils.extension( sourceFileName)); sourceFile.renameTo(targetFile); return targetFile;