From 7a177b1ad15fb53314126819548ea482d0773085 Mon Sep 17 00:00:00 2001 From: "alex.sung" Date: Tue, 14 May 2019 14:56:27 +0800 Subject: [PATCH 1/2] =?UTF-8?q?encode=E4=B8=80=E4=B8=8B=EF=BC=8C=E9=98=B2?= =?UTF-8?q?=E6=AD=A2=E4=B9=B1=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mainframe/messagecollect/entity/FileEntityBuilder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/designer-realize/src/main/java/com/fr/design/mainframe/messagecollect/entity/FileEntityBuilder.java b/designer-realize/src/main/java/com/fr/design/mainframe/messagecollect/entity/FileEntityBuilder.java index 99ba2c5f7..9071902ce 100644 --- a/designer-realize/src/main/java/com/fr/design/mainframe/messagecollect/entity/FileEntityBuilder.java +++ b/designer-realize/src/main/java/com/fr/design/mainframe/messagecollect/entity/FileEntityBuilder.java @@ -21,6 +21,7 @@ import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; +import java.net.URLEncoder; import java.util.HashMap; import java.util.UUID; @@ -120,7 +121,7 @@ public class FileEntityBuilder { try { HashMap params = new HashMap<>(); params.put("topic", FOCUS_POINT_FILE_UPLOAD_TOPIC); - params.put("username", userName); + params.put("username", URLEncoder.encode(userName, EncodeConstants.ENCODING_UTF_8)); params.put("uuid", uuid); params.put("filepath", filePath); params.put("timestamp", String.valueOf(System.currentTimeMillis())); From 3681e3910eb67f0758a81f427f8283f0122dbc7b Mon Sep 17 00:00:00 2001 From: "alex.sung" Date: Tue, 14 May 2019 15:21:55 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=B8=8Btopic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mainframe/messagecollect/entity/FileEntityBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/designer-realize/src/main/java/com/fr/design/mainframe/messagecollect/entity/FileEntityBuilder.java b/designer-realize/src/main/java/com/fr/design/mainframe/messagecollect/entity/FileEntityBuilder.java index 9071902ce..c8ac3b32c 100644 --- a/designer-realize/src/main/java/com/fr/design/mainframe/messagecollect/entity/FileEntityBuilder.java +++ b/designer-realize/src/main/java/com/fr/design/mainframe/messagecollect/entity/FileEntityBuilder.java @@ -32,7 +32,7 @@ import java.util.UUID; public class FileEntityBuilder { private static final String FOCUS_POINT_FILE_ROOT_PATH = "FocusPoint"; - private static final String FOCUS_POINT_FILE_UPLOAD_TOPIC = "__fine_intelli_treasure_upload__"; + private static final String FOCUS_POINT_FILE_UPLOAD_TOPIC = "__fine_intelli_file_upload__"; private static final String FILE_FROM = "design"; private static final String FOCUS_POINT_FILE_UPLOAD_TYPE = "FocusPoint"; private static final String FOCUS_POINT_FILE_UPLOAD_URL = CloudCenter.getInstance().acquireUrlByKind("design.feedback");