|
|
|
@ -947,12 +947,13 @@ public class IndexController {
|
|
|
|
|
|
|
|
|
|
//跳转到电脑端首页
|
|
|
|
|
@RequestMapping("/index.do")
|
|
|
|
|
public void index(HttpServletRequest request, HttpServletResponse response,
|
|
|
|
|
public String index(HttpServletRequest request, HttpServletResponse response,
|
|
|
|
|
@TTeacher Teacher teacher, @TStudent Student student, @SCoreUser CoreUser coreUser) {
|
|
|
|
|
String redirectUrl = "";
|
|
|
|
|
//判断是老师还是学生
|
|
|
|
|
if(null != student || null != teacher){//学生
|
|
|
|
|
try {
|
|
|
|
|
String redirectUrl = "";
|
|
|
|
|
|
|
|
|
|
if(request.getHeader("Referer").contains("/server")){
|
|
|
|
|
redirectUrl = request.getHeader("Referer").substring(0,request.getHeader("Referer").indexOf("/server"));
|
|
|
|
|
}else {
|
|
|
|
@ -975,7 +976,8 @@ public class IndexController {
|
|
|
|
|
if(ApplicationRunnerController.isOnline){
|
|
|
|
|
//TODO 根据 uSystem 跳不同的页面
|
|
|
|
|
|
|
|
|
|
response.sendRedirect(redirectUrl+"Home");
|
|
|
|
|
// response.sendRedirect(redirectUrl+"Home");
|
|
|
|
|
return "redirect:" + redirectUrl + "Home";
|
|
|
|
|
// if(uSystem.getTypeId().toString().equals("1")){ //大数据基础 子应用
|
|
|
|
|
// response.sendRedirect(redirectUrl+"/studentEnd_dsj/index.html");
|
|
|
|
|
// }else if(uSystem.getTypeId().toString().equals("2")){ //金融大数据 子应用
|
|
|
|
@ -988,7 +990,8 @@ public class IndexController {
|
|
|
|
|
// response.sendRedirect(redirectUrl+"/studentEnd_yx/index.html");
|
|
|
|
|
// }
|
|
|
|
|
}else {
|
|
|
|
|
response.sendRedirect("http://localhost:8080/Home");
|
|
|
|
|
// response.sendRedirect("http://localhost:8080/Home");
|
|
|
|
|
return "redirect:" + "http://localhost:8080/Home";
|
|
|
|
|
// if(uSystem.getTypeId().toString().equals("1")){ //大数据基础 子应用
|
|
|
|
|
// response.sendRedirect("http://localhost:8080/studentEnd_dsj/index.html");
|
|
|
|
|
// }else if(uSystem.getTypeId().toString().equals("2")){ //金融大数据 子应用
|
|
|
|
@ -1010,11 +1013,15 @@ public class IndexController {
|
|
|
|
|
}
|
|
|
|
|
}else{//老师 或 管理员
|
|
|
|
|
try {
|
|
|
|
|
request.getRequestDispatcher("/pc/index.do").forward(request, response);
|
|
|
|
|
// response.sendRedirect(redirectUrl+"/server/pc/index.do");
|
|
|
|
|
// request.getRequestDispatcher("/pc/index.do").forward(request, response);
|
|
|
|
|
return "forward:/pc/index.do";
|
|
|
|
|
}catch (Exception e){
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return "forward:/pc/index.do";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//跳转到电脑端首页
|
|
|
|
|