提交修改

This commit is contained in:
quyixiao 2025-04-14 20:26:05 +08:00
parent e248af6715
commit 89a30e0400

View File

@ -121,6 +121,7 @@ public class LogAop {
if (intercept && classMethodConfigNotIntercept) {
String authConfig = request.getHeader("X-TCloudMarket-Custom-AuthConfig");
if (StringUtils.isBlank(authConfig) || !authConfig.startsWith("{")) {
log.info("LogAop authConfig value:{} auth error ", authConfig);
result = R.error("auth error");
return result;
}
@ -129,8 +130,8 @@ public class LogAop {
String auth = faceAuthTentMap.get(classNameAndMethodNametencent);
Object tAuth = authConfigMap.get(ApiConstants.t_auth);
log.info("LogAop authConfig:{},auth:{},tAuth:{}", authConfig, auth, tAuth);
if (StringUtils.isBlank(auth) || !auth.equals(tAuth+"")) {
log.info("LogAop authConfig:{},auth:{},tAuth:{} auth error ", authConfig, auth, tAuth);
result = R.error("auth error");
return result;
}