chore: 记录后台获取的workspace_id 和 project_id
This commit is contained in:
parent
eb053e60fc
commit
ef93c1ee92
|
@ -71,6 +71,7 @@ public class SessionUtils {
|
||||||
public static String getCurrentWorkspaceId() {
|
public static String getCurrentWorkspaceId() {
|
||||||
try {
|
try {
|
||||||
HttpServletRequest request = ((ServletRequestAttributes) (RequestContextHolder.currentRequestAttributes())).getRequest();
|
HttpServletRequest request = ((ServletRequestAttributes) (RequestContextHolder.currentRequestAttributes())).getRequest();
|
||||||
|
LogUtil.info("WORKSPACE_ID: {}", request.getHeader("WORKSPACE_ID"));
|
||||||
if (request.getHeader("WORKSPACE_ID") != null) {
|
if (request.getHeader("WORKSPACE_ID") != null) {
|
||||||
return request.getHeader("WORKSPACE_ID");
|
return request.getHeader("WORKSPACE_ID");
|
||||||
}
|
}
|
||||||
|
@ -83,6 +84,7 @@ public class SessionUtils {
|
||||||
public static String getCurrentProjectId() {
|
public static String getCurrentProjectId() {
|
||||||
try {
|
try {
|
||||||
HttpServletRequest request = ((ServletRequestAttributes) (RequestContextHolder.currentRequestAttributes())).getRequest();
|
HttpServletRequest request = ((ServletRequestAttributes) (RequestContextHolder.currentRequestAttributes())).getRequest();
|
||||||
|
LogUtil.info("PROJECT_ID: {}", request.getHeader("PROJECT_ID"));
|
||||||
if (request.getHeader("PROJECT_ID") != null) {
|
if (request.getHeader("PROJECT_ID") != null) {
|
||||||
return request.getHeader("PROJECT_ID");
|
return request.getHeader("PROJECT_ID");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue