chore: 记录后台获取的workspace_id 和 project_id

This commit is contained in:
CaptainB 2022-01-11 18:07:48 +08:00 committed by 刘瑞斌
parent eb053e60fc
commit ef93c1ee92
1 changed files with 2 additions and 0 deletions

View File

@ -71,6 +71,7 @@ public class SessionUtils {
public static String getCurrentWorkspaceId() {
try {
HttpServletRequest request = ((ServletRequestAttributes) (RequestContextHolder.currentRequestAttributes())).getRequest();
LogUtil.info("WORKSPACE_ID: {}", request.getHeader("WORKSPACE_ID"));
if (request.getHeader("WORKSPACE_ID") != null) {
return request.getHeader("WORKSPACE_ID");
}
@ -83,6 +84,7 @@ public class SessionUtils {
public static String getCurrentProjectId() {
try {
HttpServletRequest request = ((ServletRequestAttributes) (RequestContextHolder.currentRequestAttributes())).getRequest();
LogUtil.info("PROJECT_ID: {}", request.getHeader("PROJECT_ID"));
if (request.getHeader("PROJECT_ID") != null) {
return request.getHeader("PROJECT_ID");
}