|
|
|
@ -808,10 +808,9 @@ public class IndexController {
|
|
|
|
|
uSystem.setTypeId(typeId);
|
|
|
|
|
UserLoginInfo info = null;
|
|
|
|
|
|
|
|
|
|
Cookie cc = new Cookie("JSESSIONID", request.getSession().getId());
|
|
|
|
|
cc.setPath("/");
|
|
|
|
|
cc.setDomain(request.getRemoteAddr());
|
|
|
|
|
response.addCookie(cc);
|
|
|
|
|
// Cookie cc = new Cookie("JSESSIONID", request.getSession().getId());
|
|
|
|
|
// cc.setPath("/");
|
|
|
|
|
// response.addCookie(cc);
|
|
|
|
|
try {
|
|
|
|
|
info = userService.login(code, password);
|
|
|
|
|
}catch (Exception e){
|
|
|
|
@ -970,21 +969,19 @@ public class IndexController {
|
|
|
|
|
// UniversitiesCollegesJurisdictionExperimentalSystem uSystem = (UniversitiesCollegesJurisdictionExperimentalSystem)platformService.getOther(token);
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
Cookie c1 = new Cookie("JSESSIONID", request.getSession().getId());
|
|
|
|
|
c1.setPath("/");
|
|
|
|
|
c1.setDomain(request.getRemoteAddr());
|
|
|
|
|
response.addCookie(c1);
|
|
|
|
|
|
|
|
|
|
Cookie c2 = new Cookie("token", token);
|
|
|
|
|
c2.setPath("/");
|
|
|
|
|
c2.setDomain(request.getRemoteAddr());
|
|
|
|
|
response.addCookie(c2);
|
|
|
|
|
// Cookie c1 = new Cookie("JSESSIONID", request.getSession().getId());
|
|
|
|
|
// c1.setPath("/");
|
|
|
|
|
// response.addCookie(c1);
|
|
|
|
|
//
|
|
|
|
|
// Cookie c2 = new Cookie("token", token);
|
|
|
|
|
// c2.setPath("/");
|
|
|
|
|
// response.addCookie(c2);
|
|
|
|
|
|
|
|
|
|
if(ApplicationRunnerController.isOnline){
|
|
|
|
|
//TODO 根据 uSystem 跳不同的页面
|
|
|
|
|
|
|
|
|
|
String tsUrl = SpringUtil.getBean(Environment.class).getProperty("student.teacher.url");
|
|
|
|
|
response.sendRedirect(tsUrl +"/Home");
|
|
|
|
|
response.sendRedirect(tsUrl +"home/"+token);
|
|
|
|
|
// return "redirect:" + redirectUrl + "Home";
|
|
|
|
|
// if(uSystem.getTypeId().toString().equals("1")){ //大数据基础 子应用
|
|
|
|
|
// response.sendRedirect(redirectUrl+"/studentEnd_dsj/index.html");
|
|
|
|
@ -998,7 +995,7 @@ public class IndexController {
|
|
|
|
|
// response.sendRedirect(redirectUrl+"/studentEnd_yx/index.html");
|
|
|
|
|
// }
|
|
|
|
|
}else {
|
|
|
|
|
response.sendRedirect("http://localhost:8080/Home");
|
|
|
|
|
response.sendRedirect("http://localhost:8080/home/"+token);
|
|
|
|
|
// return "redirect:" + "http://localhost:8080/Home";
|
|
|
|
|
// if(uSystem.getTypeId().toString().equals("1")){ //大数据基础 子应用
|
|
|
|
|
// response.sendRedirect("http://localhost:8080/studentEnd_dsj/index.html");
|
|
|
|
|