Commit c3c67698 by gdj

修改航飞任务保存路径。

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