gaodandan 7 年之前
父節點
當前提交
a9f7ed411d
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/main/java/com/chinaitop/depot/utils/CustomFilter.java

+ 3 - 3
src/main/java/com/chinaitop/depot/utils/CustomFilter.java

@@ -25,9 +25,9 @@ public class CustomFilter implements Filter {
25
 			throws IOException, ServletException {
25
 			throws IOException, ServletException {
26
 		HttpServletRequest request = (HttpServletRequest) arg0;
26
 		HttpServletRequest request = (HttpServletRequest) arg0;
27
 		HttpSession session = request.getSession();
27
 		HttpSession session = request.getSession();
28
-		String orgId = ObjectUtils.toString(request.getParameter("pOrgId"));
29
-		if (orgId.isEmpty() && session != null){
30
-			orgId = ObjectUtils.toString(session.getAttribute("depotId"),"");
28
+		String orgId = "";
29
+		if (session != null){
30
+			orgId = ObjectUtils.toString(session.getAttribute("orgId"),"");
31
 		}
31
 		}
32
 		if (!orgId.isEmpty()) {
32
 		if (!orgId.isEmpty()) {
33
 			DataPolicyEngine.set(orgId);
33
 			DataPolicyEngine.set(orgId);