Commit 95f0899e by Hayreal

Merge remote-tracking branch 'origin/v2.0.1' into v2.0.1

2 parents 50552ec1 838f5c19
......@@ -106,4 +106,5 @@ public class ShortUrlMappingDTO implements Serializable {
private Boolean addTimestamp;
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
}
......@@ -177,7 +177,7 @@ public class ShortUrlService {
boolean flag;
int count = 0;
do {
if (count++ > 0) builder.append(URL_DUPLICATED);
if (count++ > 0) builder.append(UUID.randomUUID());
code = getCompressCode(builder.toString());
shortUrl = UrlUtil.splicingUrl(domain.getProtocol(), domain.getDomainValue(), code);
urlMapDto.setCompressCode(code);
......
......@@ -107,4 +107,5 @@ public enum UrlUtil {
public static String splicingUrl(String protocol, String domain, String code) {
return String.format("%s://%s/%s", protocol, domain, code);
}
}
......@@ -7,8 +7,8 @@ import javax.annotation.Generated;
@Generated(
value = "org.mapstruct.ap.MappingProcessor",
date = "2023-12-27T14:14:57+0800",
comments = "version: 1.5.2.Final, compiler: javac, environment: Java 1.8.0_331 (Oracle Corporation)"
date = "2023-12-28T14:20:49+0800",
comments = "version: 1.5.2.Final, compiler: javac, environment: Java 1.8.0_181 (Oracle Corporation)"
)
public class UserConverterImpl implements UserConverter {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!