Commit 667f8981 by gdj

修复L2上传文件bug

parent 9a634027
...@@ -203,7 +203,11 @@ public class MediaServiceImpl extends AbstractMediaService implements IMediaServ ...@@ -203,7 +203,11 @@ public class MediaServiceImpl extends AbstractMediaService implements IMediaServ
if (StringUtils.hasText(orgId)) { if (StringUtils.hasText(orgId)) {
// 增加 org路径 // 增加 org路径
if (path.contains(OssConfiguration.objectDirPrefix + "/" + device.getWorkspaceId())) {
path = path.replace(OssConfiguration.objectDirPrefix + "/" + device.getWorkspaceId(), OssConfiguration.objectDirPrefix + "/" + device.getWorkspaceId() + "/" + orgId); path = path.replace(OssConfiguration.objectDirPrefix + "/" + device.getWorkspaceId(), OssConfiguration.objectDirPrefix + "/" + device.getWorkspaceId() + "/" + orgId);
} else {
path = path.replace(OssConfiguration.objectDirPrefix, OssConfiguration.objectDirPrefix + "/" + device.getWorkspaceId() + "/" + orgId);
}
// jobId改成 jobName // jobId改成 jobName
// if (jobDTO != null) { // if (jobDTO != null) {
// path = path.replace(callback.getFile().getExt().getFlightId(), jobDTO.getJobName()); // path = path.replace(callback.getFile().getExt().getFlightId(), jobDTO.getJobName());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment