mirror of https://gitee.com/stylefeng/roses
【7.0.4】【file】更新预览文件的url
parent
771e7d1c2c
commit
da0e01cb86
|
@ -175,7 +175,7 @@ public class LocalFileOperator implements FileOperatorApi {
|
||||||
// 获取context-path
|
// 获取context-path
|
||||||
String contextPath = HttpServletUtil.getRequest().getContextPath();
|
String contextPath = HttpServletUtil.getRequest().getContextPath();
|
||||||
|
|
||||||
return FileConfigExpander.getServerDeployHost() + contextPath + FileConstants.FILE_PRIVATE_PREVIEW_URL + "?fileBucket=" + bucketName + "&fileObjectName=" + key + "&token=" + token;
|
return FileConfigExpander.getServerDeployHost() + contextPath + FileConstants.FILE_PREVIEW_BY_OBJECT_NAME + "?fileBucket=" + bucketName + "&fileObjectName=" + key + "&token=" + token;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -210,7 +210,7 @@ public class MinIoFileOperator implements FileOperatorApi {
|
||||||
// 获取context-path
|
// 获取context-path
|
||||||
String contextPath = HttpServletUtil.getRequest().getContextPath();
|
String contextPath = HttpServletUtil.getRequest().getContextPath();
|
||||||
|
|
||||||
return FileConfigExpander.getServerDeployHost() + contextPath + FileConstants.FILE_PRIVATE_PREVIEW_URL + "?fileBucket=" + bucketName + "&fileObjectName=" + key + "&token=" + token;
|
return FileConfigExpander.getServerDeployHost() + contextPath + FileConstants.FILE_PREVIEW_BY_OBJECT_NAME + "?fileBucket=" + bucketName + "&fileObjectName=" + key + "&token=" + token;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue