mirror of
https://github.com/ZSCNetSupportDept/WechatTicketSystem.git
synced 2025-10-28 23:55:04 +08:00
update result page
This commit is contained in:
@@ -3,6 +3,8 @@ package love.sola.netsupport.util;
|
|||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
|
import static love.sola.netsupport.config.Lang.lang;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ***********************************************
|
* ***********************************************
|
||||||
* Created by Sola on 2015/12/6.
|
* Created by Sola on 2015/12/6.
|
||||||
@@ -11,7 +13,7 @@ import java.io.IOException;
|
|||||||
*/
|
*/
|
||||||
public class Redirect {
|
public class Redirect {
|
||||||
|
|
||||||
public static final String REDIRECT_PAGE = "http://topaz.sinaapp.com/nm/result.html";
|
public static final String REDIRECT_PAGE = lang("RESULT_PAGE");
|
||||||
|
|
||||||
public static void message(HttpServletResponse response, int type, String message) throws IOException {
|
public static void message(HttpServletResponse response, int type, String message) throws IOException {
|
||||||
response.sendRedirect(
|
response.sendRedirect(
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ Submit_Desc: "在网维工作人员上门解决您的问题之前,您可以尝
|
|||||||
User_Register_Link: "您尚未进行微信绑定, 请<a href=\"http://topaz.sinaapp.com/nm/v1/reg.php?wechatid={0}\">点击这里</a>进行微信绑定操作。"
|
User_Register_Link: "您尚未进行微信绑定, 请<a href=\"http://topaz.sinaapp.com/nm/v1/reg.php?wechatid={0}\">点击这里</a>进行微信绑定操作。"
|
||||||
User_Query_Link: 'http://topaz.sinaapp.com/nm/v1/query.php?wechatid={0}'
|
User_Query_Link: 'http://topaz.sinaapp.com/nm/v1/query.php?wechatid={0}'
|
||||||
User_Submit_Link: 'http://topaz.sinaapp.com/nm/v1/submit.php?wechatid={0}'
|
User_Submit_Link: 'http://topaz.sinaapp.com/nm/v1/submit.php?wechatid={0}'
|
||||||
|
Result_Page: 'http://topaz.sinaapp.com/nm/v1/result.html'
|
||||||
|
|
||||||
#Localized
|
#Localized
|
||||||
#Status
|
#Status
|
||||||
|
|||||||
@@ -14,14 +14,7 @@ public class TestEncrypt {
|
|||||||
@Test
|
@Test
|
||||||
public void test() {
|
public void test() {
|
||||||
String hash = BCrypt.hashpw("mypasswordhere", BCrypt.gensalt());
|
String hash = BCrypt.hashpw("mypasswordhere", BCrypt.gensalt());
|
||||||
System.out.println("hash = " + hash);
|
assert BCrypt.checkpw("mypasswordhere", hash);
|
||||||
System.out.println("BCrypt.checkpw(\"mypasswordhere\",hash) = " + BCrypt.checkpw("mypasswordhere", hash));
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void testChk() {
|
|
||||||
String hash = "$2a$10$RCXxfEygwHQeF4BKjx5Uwu/C72HqoCN.jKpNSNdwizcy7m301C9Am";
|
|
||||||
System.out.println("BCrypt.checkpw(\"mypasswordhere\",hash) = " + BCrypt.checkpw("mypasswordhere", hash));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ public class TestMessageFormat {
|
|||||||
@Test
|
@Test
|
||||||
public void testLang() {
|
public void testLang() {
|
||||||
assert Lang.messages != null;
|
assert Lang.messages != null;
|
||||||
System.out.println(Lang.messages);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ public class TestReflection {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testBlock() {
|
public void testBlock() {
|
||||||
System.out.println(Block.inverseMap);
|
assert Block.inverseMap != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ public class TestRegex {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testStudentId() {
|
public void testStudentId() {
|
||||||
System.out.println("2011130201233".matches(STUDENT_ID_REGEX));
|
assert !"2011130201233".matches(STUDENT_ID_REGEX);
|
||||||
System.out.println("2015130201233".matches(STUDENT_ID_REGEX));
|
assert "2015130201233".matches(STUDENT_ID_REGEX);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user