fix(auth): 调整放行路径并补充租户筛选条件

This commit is contained in:
2026-02-24 19:19:49 +08:00
parent edd78aa0ca
commit e75fae2ad7
2 changed files with 4 additions and 2 deletions

View File

@@ -50,7 +50,8 @@ public class SaTokenConfigure implements WebMvcConfigurer {
"/user/bigbrother-doLogin",
"/user/aiChat-doLogin",
"/user/aiChat-logout",
"/user/webAi-doLogin",
"/user/webAi-doLogin",
"/common/notice",
"/error",
};
}

View File

@@ -18,7 +18,8 @@ public class SystemNoticeServiceImpl extends ServiceImpl<SystemNoticeMapper, Sys
@Override
public List<SystemNotice> getActiveNoticeList() {
LambdaQueryWrapper<SystemNotice> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(SystemNotice::getStatus, 0);
queryWrapper.eq(SystemNotice::getStatus, 0)
.eq(SystemNotice::getTenantId, 1);
return this.list(queryWrapper);
}