This commit is contained in:
HuangQing 2025-03-07 16:39:08 +08:00
parent b1c4ebb87c
commit dd9a184924
2 changed files with 27 additions and 30 deletions

1
.idea/vcs.xml generated
View File

@ -2,5 +2,6 @@
<project version="4"> <project version="4">
<component name="VcsDirectoryMappings"> <component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" /> <mapping directory="" vcs="Git" />
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component> </component>
</project> </project>

View File

@ -17,34 +17,30 @@ public class IndexHandler {
// 拼接服务器地址 // 拼接服务器地址
String licenseUrl = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort(); String licenseUrl = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort();
StringBuffer html = new StringBuffer("<h3>使用说明Instructions for use</h3>"); String html = "<h3>使用说明Instructions for use</h3>" + "<hr/>" +
"<h1>Hello,This is a Jrebel & JetBrains License Server!</h1>" +
html.append("<hr/>"); "<p>License Server started at " + licenseUrl +
"<p>JetBrains Activation address was: <span style='color:red'>" + licenseUrl + "/" +
html.append("<h1>Hello,This is a Jrebel & JetBrains License Server!</h1>"); "<p>JRebel 7.1 and earlier version Activation address was: <span style='color:red'>" +
html.append("<p>License Server started at ").append(licenseUrl); licenseUrl + "/{tokenname}" +
html.append("<p>JetBrains Activation address was: <span style='color:red'>").append(licenseUrl).append("/"); "</span>, with any email." +
html.append("<p>JRebel 7.1 and earlier version Activation address was: <span style='color:red'>") "<p>JRebel 2018.1 and later version Activation address was: " +
.append(licenseUrl).append("/{tokenname}") licenseUrl + "/{guid}" +
.append("</span>, with any email."); "(eg:<span style='color:red'>" +
html.append("<p>JRebel 2018.1 and later version Activation address was: ") licenseUrl + "/" + UUID.randomUUID() +
.append(licenseUrl).append("/{guid}") "</span>), with any email." +
.append("(eg:<span style='color:red'>") "<hr/>" +
.append(licenseUrl).append("/").append(UUID.randomUUID()) "<h1>Hello此地址是 Jrebel & JetBrains License Server!</h1>" +
.append("</span>), with any email."); "<p>JetBrains许可服务器激活地址 " + licenseUrl +
"<p>JetBrains激活地址是: <span style='color:red'>" + licenseUrl + "/" +
html.append("<hr/>"); "<p>JRebel 7.1 及旧版本激活地址: <span style='color:red'>" +
html.append("<h1>Hello此地址是 Jrebel & JetBrains License Server!</h1>"); licenseUrl + "/{tokenname}" +
html.append("<p>JetBrains许可服务器激活地址 ").append(licenseUrl); "</span>, 以及任意邮箱地址。" +
html.append("<p>JetBrains激活地址是: <span style='color:red'>").append(licenseUrl).append("/"); "<p>JRebel 2018.1+ 版本激活地址: " +
html.append("<p>JRebel 7.1 及旧版本激活地址: <span style='color:red'>") licenseUrl + "/{guid}" +
.append(licenseUrl).append("/{tokenname}") "(例如:<span style='color:red'>" +
.append("</span>, 以及任意邮箱地址。"); licenseUrl + "/" + UUID.randomUUID() +
html.append("<p>JRebel 2018.1+ 版本激活地址: ") "</span>), 以及任意邮箱地址。";
.append(licenseUrl).append("/{guid}")
.append("(例如:<span style='color:red'>")
.append(licenseUrl).append("/").append(UUID.randomUUID())
.append("</span>), 以及任意邮箱地址。");
response.getWriter().println(html); response.getWriter().println(html);
} }