Commit 9e5d9600 authored by 何进财's avatar 何进财

Merge branch 'feat/reportData' into 'master'

feat: ossUrl过期链接放开到5天

See merge request !74
parents 5a62112d f0ddcdff
......@@ -110,7 +110,7 @@ public class DataReportService {
private String generatePresignedUrl(String ossUrl) {
// 生成一个带过期时间的url
String[] ossObjInfo = parseOSSUrl(ossUrl);
Instant expireInstant = Instant.now().plusSeconds(86400);
Instant expireInstant = Instant.now().plusSeconds(5 * 86400);
URL url = oss.generatePresignedUrl(ossObjInfo[0], ossObjInfo[1], Date.from(expireInstant));
return url.toString();
}
......
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