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

(cherry picked from commit ef93c1ee92)
This commit is contained in:
CaptainB 2022-01-11 18:07:48 +08:00 committed by shiziyuan9527
parent 73193cc08a
commit b32788bd3d
1 changed files with 2 additions and 0 deletions

View File

@ -70,6 +70,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");
}
@ -81,6 +82,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");
}