提交修改
This commit is contained in:
parent
1d175262f3
commit
c73d6c7051
@ -123,10 +123,15 @@ public class LogAop {
|
|||||||
if (StringUtils.isBlank(authConfig) || !authConfig.startsWith("{")) {
|
if (StringUtils.isBlank(authConfig) || !authConfig.startsWith("{")) {
|
||||||
return R.error("auth error");
|
return R.error("auth error");
|
||||||
}
|
}
|
||||||
|
|
||||||
Map<String, Object> authConfigMap = JSONObject.parseObject(authConfig, Map.class);
|
Map<String, Object> authConfigMap = JSONObject.parseObject(authConfig, Map.class);
|
||||||
String auth = faceAuthTentMap.get(classNameAndMethodNametencent);
|
String auth = faceAuthTentMap.get(classNameAndMethodNametencent);
|
||||||
if(StringUtils.isBlank(auth) || !auth.equals(authConfigMap.get(ApiConstants.t_auth))){
|
Object tAuth = authConfigMap.get(ApiConstants.t_auth);
|
||||||
return R.error("auth error");
|
|
||||||
|
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();
|
result = point.proceed();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user