修复:定期更新维护短信验证码
This commit is contained in:
@@ -515,7 +515,7 @@ public class MainController extends BaseController {
|
|||||||
|
|
||||||
// 超级管理员验证
|
// 超级管理员验证
|
||||||
if(isSuperAdmin != null){
|
if(isSuperAdmin != null){
|
||||||
if (!code.equals(redisUtil.get(key)) && !"179339".equals(code)) {
|
if (!code.equals(redisUtil.get(key))) {
|
||||||
String message = "验证码不正确";
|
String message = "验证码不正确";
|
||||||
return fail(message, null);
|
return fail(message, null);
|
||||||
}
|
}
|
||||||
@@ -613,7 +613,7 @@ public class MainController extends BaseController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 短信验证
|
// 短信验证
|
||||||
if (!StrUtil.equals(code, cacheClient.get(phone, String.class)) && !StrUtil.equals(code, "179339")) {
|
if (!StrUtil.equals(code, cacheClient.get(phone, String.class))) {
|
||||||
throw new BusinessException("验证码不正确");
|
throw new BusinessException("验证码不正确");
|
||||||
}
|
}
|
||||||
// 注册管理员
|
// 注册管理员
|
||||||
@@ -756,7 +756,7 @@ public class MainController extends BaseController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 短信验证
|
// 短信验证
|
||||||
if (!StrUtil.equals(code, cacheClient.get(phone, String.class)) && !StrUtil.equals(code, "179339")) {
|
if (!StrUtil.equals(code, cacheClient.get(phone, String.class))) {
|
||||||
throw new BusinessException("验证码不正确");
|
throw new BusinessException("验证码不正确");
|
||||||
}
|
}
|
||||||
// 注册管理员
|
// 注册管理员
|
||||||
|
|||||||
Reference in New Issue
Block a user