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 95f0899e
authored
Jan 02, 2024
by
Hayreal
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge remote-tracking branch 'origin/v2.0.1' into v2.0.1
2 parents
50552ec1
838f5c19
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
3 deletions
platform-execute-api/src/main/java/cn/com/glsx/execute/modules/entity/shortutl/ShortUrlMappingDTO.java
platform-execute/src/main/java/cn/com/glsx/execute/modules/service/shorturl/ShortUrlService.java
platform-execute/src/main/java/cn/com/glsx/execute/utils/UrlUtil.java
platform-execute/target/generated-sources/annotations/cn/com/glsx/execute/modules/converter/UserConverterImpl.java
platform-execute-api/src/main/java/cn/com/glsx/execute/modules/entity/shortutl/ShortUrlMappingDTO.java
View file @
95f0899
...
@@ -107,3 +107,4 @@ public class ShortUrlMappingDTO implements Serializable {
...
@@ -107,3 +107,4 @@ public class ShortUrlMappingDTO implements Serializable {
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
}
}
platform-execute/src/main/java/cn/com/glsx/execute/modules/service/shorturl/ShortUrlService.java
View file @
95f0899
...
@@ -177,7 +177,7 @@ public class ShortUrlService {
...
@@ -177,7 +177,7 @@ public class ShortUrlService {
boolean
flag
;
boolean
flag
;
int
count
=
0
;
int
count
=
0
;
do
{
do
{
if
(
count
++
>
0
)
builder
.
append
(
U
RL_DUPLICATED
);
if
(
count
++
>
0
)
builder
.
append
(
U
UID
.
randomUUID
()
);
code
=
getCompressCode
(
builder
.
toString
());
code
=
getCompressCode
(
builder
.
toString
());
shortUrl
=
UrlUtil
.
splicingUrl
(
domain
.
getProtocol
(),
domain
.
getDomainValue
(),
code
);
shortUrl
=
UrlUtil
.
splicingUrl
(
domain
.
getProtocol
(),
domain
.
getDomainValue
(),
code
);
urlMapDto
.
setCompressCode
(
code
);
urlMapDto
.
setCompressCode
(
code
);
...
...
platform-execute/src/main/java/cn/com/glsx/execute/utils/UrlUtil.java
View file @
95f0899
...
@@ -107,4 +107,5 @@ public enum UrlUtil {
...
@@ -107,4 +107,5 @@ public enum UrlUtil {
public
static
String
splicingUrl
(
String
protocol
,
String
domain
,
String
code
)
{
public
static
String
splicingUrl
(
String
protocol
,
String
domain
,
String
code
)
{
return
String
.
format
(
"%s://%s/%s"
,
protocol
,
domain
,
code
);
return
String
.
format
(
"%s://%s/%s"
,
protocol
,
domain
,
code
);
}
}
}
}
platform-execute/target/generated-sources/annotations/cn/com/glsx/execute/modules/converter/UserConverterImpl.java
View file @
95f0899
...
@@ -7,8 +7,8 @@ import javax.annotation.Generated;
...
@@ -7,8 +7,8 @@ import javax.annotation.Generated;
@Generated
(
@Generated
(
value
=
"org.mapstruct.ap.MappingProcessor"
,
value
=
"org.mapstruct.ap.MappingProcessor"
,
date
=
"2023-12-2
7T14:14:57
+0800"
,
date
=
"2023-12-2
8T14:20:49
+0800"
,
comments
=
"version: 1.5.2.Final, compiler: javac, environment: Java 1.8.0_
33
1 (Oracle Corporation)"
comments
=
"version: 1.5.2.Final, compiler: javac, environment: Java 1.8.0_
18
1 (Oracle Corporation)"
)
)
public
class
UserConverterImpl
implements
UserConverter
{
public
class
UserConverterImpl
implements
UserConverter
{
...
...
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