|
@@ -2,6 +2,8 @@ package sgc.portal.websquare.web;
|
|
|
|
|
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
+
|
|
|
+import scala.Console;
|
|
|
import sgc.portal.SgcPortalAttributes;
|
|
|
import sgc.portal.SgcPortalProperties;
|
|
|
import sgc.portal.base.util.SessionUtil;
|
|
@@ -129,7 +131,7 @@ public class WebsquareController {
|
|
|
// 지정된 url에서 접근 가능하도록 추가
|
|
|
// ---------------------------------------------------------------------------------------------------------------
|
|
|
String referer = StringUtils.trimToNull(request.getHeader("Referer"));
|
|
|
-
|
|
|
+ System.out.print("111111111111111111111111111111111111111111111111111111111111111111" + referer);
|
|
|
if (StringUtils.isEmpty(referer)) {
|
|
|
response.setContentType("text/html; charset=UTF-8");
|
|
|
PrintWriter out;
|
|
@@ -141,6 +143,7 @@ public class WebsquareController {
|
|
|
// TODO Auto-generated catch block
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
+ return mv;
|
|
|
}
|
|
|
|
|
|
if( referer.substring(0,24).equals("https://gw.sgcetec.co.kr") ||
|
|
@@ -188,6 +191,7 @@ public class WebsquareController {
|
|
|
mv.setViewName(jspUrl);
|
|
|
mv.addObject("w2xPath", movePage);
|
|
|
mv.addObject("userDetails", jsonInString);
|
|
|
+ return mv;
|
|
|
|
|
|
} else {
|
|
|
response.setContentType("text/html; charset=UTF-8");
|
|
@@ -200,10 +204,9 @@ public class WebsquareController {
|
|
|
// TODO Auto-generated catch block
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
+ return mv;
|
|
|
|
|
|
}
|
|
|
-
|
|
|
- return mv;
|
|
|
// ---------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
}
|