提交修改
This commit is contained in:
parent
83bf40ab9c
commit
1d175262f3
@ -120,6 +120,9 @@ public class LogAop {
|
|||||||
// 如果方法和类上都没有配置NotIntercept注解 ,则需要拦截
|
// 如果方法和类上都没有配置NotIntercept注解 ,则需要拦截
|
||||||
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("{")){
|
||||||
|
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))){
|
if(StringUtils.isBlank(auth) || !auth.equals(authConfigMap.get(ApiConstants.t_auth))){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user