代码-去掉jsx和jsoup
This commit is contained in:
@@ -51,7 +51,7 @@ public class PasswordAuthenticationProvider implements AuthenticationProvider {
|
||||
|
||||
@Override
|
||||
public Authentication authenticate(Authentication authentication) throws AuthenticationException {
|
||||
Map<?, ?> params = (Map<?, ?>) authentication.getDetails();
|
||||
Map<String, ?> params = (Map<String, ?>) authentication.getDetails();
|
||||
String smsCode = (String) params.get("code");
|
||||
String phoneAreaCode = (String) params.get("phoneAreaCode");
|
||||
String ipAddress = RequestContextHolderUtils.getRemoteAddr();
|
||||
|
@@ -38,7 +38,7 @@ public class VerifyCodeAuthenticationProvider implements AuthenticationProvider
|
||||
|
||||
@Override
|
||||
public Authentication authenticate(Authentication authentication) throws AuthenticationException {
|
||||
Map<?, ?> params = (Map<?, ?>) authentication.getDetails();
|
||||
Map<String, ?> params = (Map<String, ?>) authentication.getDetails();
|
||||
String phone = authentication.getName();
|
||||
String code = (String) authentication.getCredentials();
|
||||
String phoneAreaCode = (String) params.get(PHONE_AREA_CODE);
|
||||
|
@@ -75,12 +75,10 @@ public class SecurityInterceptor extends BasicInterceptor {
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
private boolean isLegalRequest(HttpServletRequest request) throws Exception {
|
||||
TreeMap<String, String[]> paramsMap = new TreeMap<>();
|
||||
paramsMap.putAll(request.getParameterMap());
|
||||
private boolean isLegalRequest(HttpServletRequest request) {
|
||||
TreeMap<String, String[]> paramsMap = new TreeMap<>(request.getParameterMap());
|
||||
|
||||
|
||||
StringBuffer builder = new StringBuffer();
|
||||
StringBuilder builder = new StringBuilder();
|
||||
Set<Map.Entry<String, String[]>> entries = paramsMap.entrySet();
|
||||
for (Map.Entry<String, String[]> entry : entries) {
|
||||
String name = entry.getKey();
|
||||
@@ -110,16 +108,4 @@ public class SecurityInterceptor extends BasicInterceptor {
|
||||
String excludeUri = this.jedisService.hget(RedisKey.exclude_uri.getKey(), url);
|
||||
return StringUtils.isNotEmpty(excludeUri) && StringUtils.equalsIgnoreCase(excludeUri, Boolean.TRUE.toString());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void postHandle(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Object o, ModelAndView modelAndView)
|
||||
throws Exception {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterCompletion(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Object o, Exception e) throws Exception {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user