Browse Source

REPORT-18242 设计器没有用户名的时候,自动上传功能点记录要采用设计器的uuid作为用户名

* commit '24f2f13bf442eb53d19938dd21716a509a24b1b2':
  没有用户名时用uuid作为用户名
bugfix/10.0
Alex.Sung 6 years ago
parent
commit
0d3d20005e
  1. 2
      designer-realize/src/main/java/com/fr/design/mainframe/messagecollect/entity/FileEntityBuilder.java

2
designer-realize/src/main/java/com/fr/design/mainframe/messagecollect/entity/FileEntityBuilder.java

@ -109,7 +109,7 @@ public class FileEntityBuilder {
String filePath = FOCUS_POINT_FILE_ROOT_PATH + CoreConstants.SEPARATOR + today + CoreConstants.SEPARATOR + keyFileName;
String bbsUserName = MarketConfig.getInstance().getBbsUsername();
String uuid = DesignerEnvManager.getEnvManager().getUUID();
String name = bbsUserName == null ? uuid : bbsUserName;
String name = StringUtils.isEmpty(bbsUserName) ? uuid : bbsUserName;
client.uploadFile(file, filePath, name, FILE_FROM);
addMessageQueue(filePath, bbsUserName, uuid);

Loading…
Cancel
Save