提交修改

This commit is contained in:
quyixiao 2025-04-12 23:41:24 +08:00
parent 83bf40ab9c
commit 1d175262f3

View File

@ -120,6 +120,9 @@ public class LogAop {
// 如果方法和类上都没有配置NotIntercept注解 则需要拦截
if (intercept && classMethodConfigNotIntercept) {
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);
String auth = faceAuthTentMap.get(classNameAndMethodNametencent);
if(StringUtils.isBlank(auth) || !auth.equals(authConfigMap.get(ApiConstants.t_auth))){