Merge branch 'dev' into 'test'
feat(iwork): 扩展iWork集成功能支持通用流程创建和回调处理 See merge request jygk/dsc!26
This commit is contained in:
@@ -85,6 +85,7 @@ public class FileController {
|
||||
String baseUrl = buildPublicBaseUrl(request); // 见下方函数
|
||||
String decryptUrl = baseUrl + "/admin-api/infra/file/preview-decrypt?fileId=" + fileId + "&token=" + token;
|
||||
fileRespVO.setUrl(decryptUrl);
|
||||
log.info("decryptUrl={}, urlFieldAfterSet={}", decryptUrl, fileRespVO.getUrl());
|
||||
}
|
||||
|
||||
return success(fileRespVO);
|
||||
|
||||
@@ -64,6 +64,8 @@ public class FileRespVO {
|
||||
private String previewUrl;
|
||||
|
||||
public String getPreviewUrl() {
|
||||
log.info("GET /infra/file/get this.downloadable={}, this.url={}, isEncrypted={}",
|
||||
this.downloadable, this.url, this.isEncrypted);
|
||||
// 不可下载不返回 previewUrl
|
||||
if (Boolean.FALSE.equals(this.downloadable) ) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user