chore: 记录后台获取的workspace_id 和 project_id
(cherry picked from commit ef93c1ee92
)
This commit is contained in:
parent
73193cc08a
commit
b32788bd3d
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue