|  | @ -64,6 +64,28 @@ public class CommonPageController extends BaseController {
 | 
	
		
			
				|  |  |         return "pageView";
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      *  租户授权失败跳转页面
 | 
	
		
			
				|  |  |      * @param model
 | 
	
		
			
				|  |  |      * @return
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     @RequestMapping("tenantAutoFail")
 | 
	
		
			
				|  |  |     public String tenantAutoFail(Model model) {
 | 
	
		
			
				|  |  |         model.addAttribute("contentPage", "/common/tenantAutoFail");
 | 
	
		
			
				|  |  |         return "pageView";
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      *  集成登录验证失败跳转页面
 | 
	
		
			
				|  |  |      * @param model
 | 
	
		
			
				|  |  |      * @return
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     @RequestMapping("/oauth2/tokenValidFail")
 | 
	
		
			
				|  |  |     public String tokenValidFail(Model model) {
 | 
	
		
			
				|  |  |         model.addAttribute("contentPage", "/common/tokenValidFail");
 | 
	
		
			
				|  |  |         return "pageView";
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /*
 | 
	
		
			
				|  |  |     登录页面
 | 
	
		
			
				|  |  |      */
 | 
	
	
		
			
				|  | @ -83,8 +105,8 @@ public class CommonPageController extends BaseController {
 | 
	
		
			
				|  |  |                 PrintWriter out = null;
 | 
	
		
			
				|  |  |                 try {
 | 
	
		
			
				|  |  |                     out = response.getWriter();
 | 
	
		
			
				|  |  |                     out.print("<script>alert('登录地址有误-用户授权失败!');</script>");
 | 
	
		
			
				|  |  |                     response.sendRedirect("/esb/loginPage");
 | 
	
		
			
				|  |  | //                    out.print("<script>alert('登录地址有误-用户授权失败!');</script>");
 | 
	
		
			
				|  |  |                     response.sendRedirect("/esb/tenantAutoFail");
 | 
	
		
			
				|  |  |                     out.flush();
 | 
	
		
			
				|  |  |                 } catch (IOException e) {
 | 
	
		
			
				|  |  |                     e.printStackTrace();
 | 
	
	
		
			
				|  | @ -122,14 +144,13 @@ public class CommonPageController extends BaseController {
 | 
	
		
			
				|  |  |             System.out.println("auth:   " + auth);
 | 
	
		
			
				|  |  |             if (!auth) {
 | 
	
		
			
				|  |  |                 //授权失败,切换回管理平台数据库
 | 
	
		
			
				|  |  |                 auth = authenticateService.auth(session, saasAdmin);
 | 
	
		
			
				|  |  |                 response.setCharacterEncoding("UTF-8");
 | 
	
		
			
				|  |  |                 response.setHeader("Content-type", "text/html;charset=UTF-8");
 | 
	
		
			
				|  |  |                 PrintWriter out = null;
 | 
	
		
			
				|  |  |                 try {
 | 
	
		
			
				|  |  |                     out = response.getWriter();
 | 
	
		
			
				|  |  |                     out.print("<script>alert('请求地址不存在!');</script>");
 | 
	
		
			
				|  |  |                     response.sendRedirect("/esb/loginPage");
 | 
	
		
			
				|  |  | //                    out.print("<script>alert('请求地址不存在!');</script>");
 | 
	
		
			
				|  |  |                     response.sendRedirect("/esb/tenantAutoFail");
 | 
	
		
			
				|  |  |                     out.flush();
 | 
	
		
			
				|  |  |                 } catch (IOException e) {
 | 
	
		
			
				|  |  |                     e.printStackTrace();
 |