提交修改
This commit is contained in:
parent
e248af6715
commit
89a30e0400
@ -121,6 +121,7 @@ public class LogAop {
|
|||||||
if (intercept && classMethodConfigNotIntercept) {
|
if (intercept && classMethodConfigNotIntercept) {
|
||||||
String authConfig = request.getHeader("X-TCloudMarket-Custom-AuthConfig");
|
String authConfig = request.getHeader("X-TCloudMarket-Custom-AuthConfig");
|
||||||
if (StringUtils.isBlank(authConfig) || !authConfig.startsWith("{")) {
|
if (StringUtils.isBlank(authConfig) || !authConfig.startsWith("{")) {
|
||||||
|
log.info("LogAop authConfig value:{} auth error ", authConfig);
|
||||||
result = R.error("auth error");
|
result = R.error("auth error");
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@ -129,8 +130,8 @@ public class LogAop {
|
|||||||
String auth = faceAuthTentMap.get(classNameAndMethodNametencent);
|
String auth = faceAuthTentMap.get(classNameAndMethodNametencent);
|
||||||
Object tAuth = authConfigMap.get(ApiConstants.t_auth);
|
Object tAuth = authConfigMap.get(ApiConstants.t_auth);
|
||||||
|
|
||||||
log.info("LogAop authConfig:{},auth:{},tAuth:{}", authConfig, auth, tAuth);
|
|
||||||
if (StringUtils.isBlank(auth) || !auth.equals(tAuth+"")) {
|
if (StringUtils.isBlank(auth) || !auth.equals(tAuth+"")) {
|
||||||
|
log.info("LogAop authConfig:{},auth:{},tAuth:{} auth error ", authConfig, auth, tAuth);
|
||||||
result = R.error("auth error");
|
result = R.error("auth error");
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user