提交修改
This commit is contained in:
parent
1d175262f3
commit
c73d6c7051
@ -120,13 +120,18 @@ public class LogAop {
|
||||
// 如果方法和类上都没有配置NotIntercept注解 ,则需要拦截
|
||||
if (intercept && classMethodConfigNotIntercept) {
|
||||
String authConfig = request.getHeader("X-TCloudMarket-Custom-AuthConfig");
|
||||
if(StringUtils.isBlank(authConfig) || !authConfig.startsWith("{")){
|
||||
if (StringUtils.isBlank(authConfig) || !authConfig.startsWith("{")) {
|
||||
return R.error("auth error");
|
||||
}
|
||||
|
||||
Map<String, Object> authConfigMap = JSONObject.parseObject(authConfig, Map.class);
|
||||
String auth = faceAuthTentMap.get(classNameAndMethodNametencent);
|
||||
if(StringUtils.isBlank(auth) || !auth.equals(authConfigMap.get(ApiConstants.t_auth))){
|
||||
return R.error("auth error");
|
||||
Object tAuth = authConfigMap.get(ApiConstants.t_auth);
|
||||
|
||||
log.info("LogAop authConfig:{},auth:{},tAuth:{}", authConfig, auth, tAuth);
|
||||
if (StringUtils.isBlank(auth) || !auth.equals(tAuth+"")) {
|
||||
result = R.error("auth error");
|
||||
return result;
|
||||
}
|
||||
}
|
||||
result = point.proceed();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user