perf:更改一个方法的名称
This commit is contained in:
@@ -67,7 +67,7 @@ public class TestController {
|
|||||||
@RequestMapping("/index")
|
@RequestMapping("/index")
|
||||||
@TokenIgnore
|
@TokenIgnore
|
||||||
public void index(HttpServletResponse response) {
|
public void index(HttpServletResponse response) {
|
||||||
globalConfig.redirect("mobile", "/test", response);
|
globalConfig.redirectWithVer("mobile", "/test", response);
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping("/redirect")
|
@RequestMapping("/redirect")
|
||||||
@@ -75,7 +75,8 @@ public class TestController {
|
|||||||
@RoleAuthority("redirect")
|
@RoleAuthority("redirect")
|
||||||
public ApiResp<JsonTest> redirect(HttpServletResponse response) {
|
public ApiResp<JsonTest> redirect(HttpServletResponse response) {
|
||||||
|
|
||||||
encryptConfig.passwdCreate("111111@Zz", "");
|
String s1 = encryptConfig.passwdCreate("qU3?wE3{bX", "");
|
||||||
|
LogFactory.get().info(s1);
|
||||||
|
|
||||||
JsonTest jsonTest = new JsonTest();
|
JsonTest jsonTest = new JsonTest();
|
||||||
jsonTest.setNow(DateUtil.date());
|
jsonTest.setNow(DateUtil.date());
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ public class GlobalConfig {
|
|||||||
* @param htmlDir 资源目录
|
* @param htmlDir 资源目录
|
||||||
* @param route
|
* @param route
|
||||||
*/
|
*/
|
||||||
public void redirect(String htmlDir, String route, HttpServletResponse response) {
|
public void redirectWithVer(String htmlDir, String route, HttpServletResponse response) {
|
||||||
if (!StrUtil.endWith(htmlDir, "/")) {
|
if (!StrUtil.endWith(htmlDir, "/")) {
|
||||||
htmlDir = htmlDir + "/";
|
htmlDir = htmlDir + "/";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user