查询已激活设备列表接口

This commit is contained in:
mi9688
2024-12-16 13:14:58 +08:00
parent ffbb8bcfe4
commit 04dd90b3ef
5 changed files with 23 additions and 4 deletions

View File

@ -58,7 +58,6 @@ public class ProjectDataIsolationInterceptor implements HandlerInterceptor {
for (Cookie cookie : requestCookies){
//获取cookie中的projectIds
if ("projectIds".equals(cookie.getName())) {
if (StringUtils.isNotBlank(cookie.getValue())) {
JSONArray objects = JSONUtil.parseArray(cookie.getValue());
projectInfo.setProjectIdList(objects.toList(Long.class));
@ -67,7 +66,7 @@ public class ProjectDataIsolationInterceptor implements HandlerInterceptor {
//获取cookie中的projectId
if ("projectId".equals(cookie.getName())) {
projectInfo.setProjectId(cookie.getValue());
System.err.println("获取cooke的项目id:"+cookie.getValue());
// System.err.println("获取cooke的项目id:"+cookie.getValue());
}
//获取cookie中的userId
if ("userId".equals(cookie.getName())) {