Commit d2ce3446 by gdj

调整可能存在的临时任务文件上传问题。

parent 276b214b
......@@ -182,7 +182,11 @@ public class MediaServiceImpl extends AbstractMediaService implements IMediaServ
String orgId = takeoffToPointRequest.getOrgId();
path = path.replace(OssConfiguration.objectDirPrefix + "/" + device.getWorkspaceId(), OssConfiguration.objectDirPrefix + "/" + device.getWorkspaceId() + "/" + orgId + "/临时任务");
if (path.contains(OssConfiguration.objectDirPrefix + "/" + device.getWorkspaceId())) {
path = path.replace(OssConfiguration.objectDirPrefix + "/" + device.getWorkspaceId(), OssConfiguration.objectDirPrefix + "/" + device.getWorkspaceId() + "/" + orgId + "/临时任务");
} else {
path = path.replace(OssConfiguration.objectDirPrefix, OssConfiguration.objectDirPrefix + "/" + device.getWorkspaceId() + "/" + orgId + "/临时任务");
}
String moveFilePath = path;
file.setPath(path);
......
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