添加测试环境调试信息
This commit is contained in:
@@ -85,6 +85,7 @@ public class FileController {
|
|||||||
String baseUrl = buildPublicBaseUrl(request); // 见下方函数
|
String baseUrl = buildPublicBaseUrl(request); // 见下方函数
|
||||||
String decryptUrl = baseUrl + "/admin-api/infra/file/preview-decrypt?fileId=" + fileId + "&token=" + token;
|
String decryptUrl = baseUrl + "/admin-api/infra/file/preview-decrypt?fileId=" + fileId + "&token=" + token;
|
||||||
fileRespVO.setUrl(decryptUrl);
|
fileRespVO.setUrl(decryptUrl);
|
||||||
|
log.info("decryptUrl={}, urlFieldAfterSet={}", decryptUrl, fileRespVO.getUrl());
|
||||||
}
|
}
|
||||||
|
|
||||||
return success(fileRespVO);
|
return success(fileRespVO);
|
||||||
|
|||||||
@@ -64,6 +64,8 @@ public class FileRespVO {
|
|||||||
private String previewUrl;
|
private String previewUrl;
|
||||||
|
|
||||||
public String getPreviewUrl() {
|
public String getPreviewUrl() {
|
||||||
|
log.info("GET /infra/file/get this.downloadable={}, this.url={}, isEncrypted={}",
|
||||||
|
this.downloadable, this.url, this.isEncrypted);
|
||||||
// 不可下载不返回 previewUrl
|
// 不可下载不返回 previewUrl
|
||||||
if (Boolean.FALSE.equals(this.downloadable) ) {
|
if (Boolean.FALSE.equals(this.downloadable) ) {
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user