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

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

View File

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