Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
afanti-open-api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
java-ms
afanti-open-api
Commits
f0ddcdff
Commit
f0ddcdff
authored
May 20, 2025
by
hejincai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: ossUrl过期链接放开到5天
parent
949dee05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
DataReportService.java
...om/afanticar/afantiopenapi/service/DataReportService.java
+1
-1
No files found.
src/main/java/com/afanticar/afantiopenapi/service/DataReportService.java
View file @
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
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment