修改面审校验
This commit is contained in:
@@ -100,7 +100,7 @@ public class SignValidateFilter implements Filter {
|
||||
String method = request.getMethod();
|
||||
String userStr = "";
|
||||
boolean isInWhiteList = excludePath(uri);
|
||||
log.info("url:{}", uri);
|
||||
log.info("url:{}, method:{}", uri, method);
|
||||
if ( !isInWhiteList && !method.equals("OPTIONS")) {
|
||||
String params = "";
|
||||
if("GET".equalsIgnoreCase(method)){
|
||||
@@ -136,7 +136,7 @@ public class SignValidateFilter implements Filter {
|
||||
PartnerUserInfoVO partnerUserInfoVO = wechatMiniAppService.getUserInfo(phone, plaintextOpenid);
|
||||
if(partnerUserInfoVO != null){
|
||||
userStr = JSONObject.toJSONString(partnerUserInfoVO);
|
||||
log.info("url:{}, userStr:{}", uri, userStr);
|
||||
log.info("userStr:{}", userStr);
|
||||
}
|
||||
}
|
||||
try {
|
||||
|
||||
@@ -100,7 +100,7 @@ public class TokenValidateFilter implements Filter {
|
||||
currentUser = JSON.parseObject(userStr, LoginUserInfo.class);
|
||||
}
|
||||
}
|
||||
log.info("url:{}", uri);
|
||||
log.info("url:{}, method:{}", uri, method);
|
||||
if ( !isInWhiteList && !method.equals("OPTIONS")) {
|
||||
if (StringUtils.isEmpty(accessToken)) {
|
||||
response.setStatus(HttpStatus.OK.value());
|
||||
@@ -114,7 +114,7 @@ public class TokenValidateFilter implements Filter {
|
||||
ResponseResult.fail(ErrorCodeEnum.ACCESS_TOKEN_INVALID)));
|
||||
return;
|
||||
}
|
||||
log.info("url:{}, access_token:{}, userId:{}, username:{}", uri, accessToken, currentUser.getUserId(), currentUser.getName());
|
||||
log.info("access_token:{}, userId:{}, username:{}", accessToken, currentUser.getUserId(), currentUser.getName());
|
||||
}
|
||||
if(StringUtils.isBlank(userStr) && !isInWhiteList){
|
||||
response.setStatus(HttpStatus.OK.value());
|
||||
|
||||
Reference in New Issue
Block a user