Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
platform
/
platform-execute-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c6260e4e
authored
Oct 10, 2023
by
chizw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
sop短链 sop事件参数调整
1 parent
51d33667
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
platform-execute/src/main/java/cn/com/glsx/execute/filter/BaseNamingAccessFilter.java
platform-execute/src/main/java/cn/com/glsx/execute/filter/shorturl/UrlTransformFilter.java
platform-execute/src/main/java/cn/com/glsx/execute/filter/BaseNamingAccessFilter.java
View file @
c6260e4
...
...
@@ -6,9 +6,10 @@ import lombok.extern.slf4j.Slf4j;
import
java.util.concurrent.TimeUnit
;
/**
* @author throwable
* @description 抽象命名过滤器
* @since 2020/7/21 17:30
* @Description 抽象命名过滤器
* @author chizw
* @create 2023/10/10 16:55
* @version ver.1.0.0
*/
@Slf4j
@RequiredArgsConstructor
...
...
platform-execute/src/main/java/cn/com/glsx/execute/filter/shorturl/UrlTransformFilter.java
View file @
c6260e4
...
...
@@ -82,7 +82,7 @@ public class UrlTransformFilter implements AccessFilter {
longUrl
=
b4RedirectPage
+
"?url="
+
UrlUtil
.
splicingUrl
(
protocol
,
domainValue
,
context
.
getCompressCode
());
}
else
{
if
(
StringUtils
.
isNotEmpty
(
urlParam
))
{
longUrl
=
String
.
format
(
"%s?%s
"
,
longUrl
,
urlParam
);
longUrl
=
String
.
format
(
"%s?%s
&%s"
,
longUrl
,
context
.
getParam
(
TransformContext
.
PARAM_QUERY_STRING_KEY
)
,
urlParam
);
}
if
(
addTimestamp
!=
null
&&
addTimestamp
)
{
longUrl
=
String
.
format
(
"%s%stimestamp=%s"
,
longUrl
,
(
longUrl
.
contains
(
"?"
)
?
"?"
:
"&"
),
new
Date
().
getTime
());
...
...
@@ -90,6 +90,5 @@ public class UrlTransformFilter implements AccessFilter {
}
context
.
setLocation
(
longUrl
);
chain
.
doFilter
(
context
);
}
}
Write
Preview
Markdown
is supported
Attach a file
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 post a comment