From 8e13403d5bcab9eebc5def345e3df89e922e49c3 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Fri, 9 Aug 2024 13:36:14 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E7=94=A8=E4=BE=8B=E7=AE=A1=E7=90=86):?= =?UTF-8?q?=20=E8=8E=B7=E5=8F=96=E4=B8=8B=E8=BD=BD=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E7=9A=84=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sdk/src/main/java/io/metersphere/sdk/util/MsFileUtils.java | 2 +- backend/framework/sdk/src/main/resources/i18n/case.properties | 2 +- .../framework/sdk/src/main/resources/i18n/case_zh_CN.properties | 2 +- .../framework/sdk/src/main/resources/i18n/case_zh_TW.properties | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/util/MsFileUtils.java b/backend/framework/sdk/src/main/java/io/metersphere/sdk/util/MsFileUtils.java index aa526bad54..9228b4cefa 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/util/MsFileUtils.java +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/util/MsFileUtils.java @@ -51,7 +51,7 @@ public class MsFileUtils { if (file != null && file.getSize() > 0) { try (InputStream ins = file.getInputStream()) { validateFileName(file.getOriginalFilename()); - File toFile = new File(FileUtils.getTempDirectoryPath()+"/"+Objects.requireNonNull(file.getOriginalFilename())); + File toFile = new File(FileUtils.getTempDirectoryPath()+File.separator+Objects.requireNonNull(file.getOriginalFilename())); inputStreamToFile(ins, toFile); return toFile; } catch (Exception e) { diff --git a/backend/framework/sdk/src/main/resources/i18n/case.properties b/backend/framework/sdk/src/main/resources/i18n/case.properties index 19e28db001..dc4af5c6c0 100644 --- a/backend/framework/sdk/src/main/resources/i18n/case.properties +++ b/backend/framework/sdk/src/main/resources/i18n/case.properties @@ -95,7 +95,7 @@ minder_extra_node.type.length_range=类型长度必须在1-30之间 minder_extra_node.type.not_blank=类型不能为空 minder_extra_node.case=用例 minder_extra_node.module=模块 -minder_extra_node.prerequisite=前置条件 +minder_extra_node.prerequisite=前置操作 minder_extra_node.steps=步骤描述 minder_extra_node.steps_expected_result=预期结果 minder_extra_node.steps_actual_result=实际结果 diff --git a/backend/framework/sdk/src/main/resources/i18n/case_zh_CN.properties b/backend/framework/sdk/src/main/resources/i18n/case_zh_CN.properties index 11e38a81e6..775001fd74 100644 --- a/backend/framework/sdk/src/main/resources/i18n/case_zh_CN.properties +++ b/backend/framework/sdk/src/main/resources/i18n/case_zh_CN.properties @@ -130,7 +130,7 @@ minder_extra_node.type.length_range=类型长度必须在1-30之间 minder_extra_node.type.not_blank=类型不能为空 minder_extra_node.case=用例 minder_extra_node.module=模块 -minder_extra_node.prerequisite=前置条件 +minder_extra_node.prerequisite=前置操作 minder_extra_node.steps=步骤描述 minder_extra_node.steps_expected_result=预期结果 minder_extra_node.steps_actual_result=实际结果 diff --git a/backend/framework/sdk/src/main/resources/i18n/case_zh_TW.properties b/backend/framework/sdk/src/main/resources/i18n/case_zh_TW.properties index fb94306e2c..fc01965042 100644 --- a/backend/framework/sdk/src/main/resources/i18n/case_zh_TW.properties +++ b/backend/framework/sdk/src/main/resources/i18n/case_zh_TW.properties @@ -131,7 +131,7 @@ minder_extra_node.type.length_range=類型長度必須在1-30之間 minder_extra_node.type.not_blank=類型不能為空 minder_extra_node.case=用例 minder_extra_node.module=模塊 -minder_extra_node.prerequisite=前置條件 +minder_extra_node.prerequisite=前置操作 minder_extra_node.steps=步驟描述 minder_extra_node.steps_expected_result=預期結果 minder_extra_node.steps_actual_result=實際結果