Commit 74c7e920 by gdj

修改航飞任务保存路径。

parent 225be5f1
...@@ -210,11 +210,12 @@ public class MediaServiceImpl extends AbstractMediaService implements IMediaServ ...@@ -210,11 +210,12 @@ public class MediaServiceImpl extends AbstractMediaService implements IMediaServ
// todo? 是否需要修改? // todo? 是否需要修改?
if (StringUtils.hasText(orgId)) { if (StringUtils.hasText(orgId)) {
String prePath = OssConfiguration.objectDirPrefix + "/" + device.getWorkspaceId() + "/" + orgId + "/" + device.getNickname() + "/" + "航线任务";
// 增加 org路径 // 增加 org路径
if (path.contains(OssConfiguration.objectDirPrefix + "/" + device.getWorkspaceId())) { 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(), prePath);
} else { } else {
path = path.replace(OssConfiguration.objectDirPrefix, OssConfiguration.objectDirPrefix + "/" + device.getWorkspaceId() + "/" + orgId); path = path.replace(OssConfiguration.objectDirPrefix, prePath);
} }
// jobId改成 jobName // jobId改成 jobName
// if (jobDTO != null) { // if (jobDTO != null) {
......
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