xiatian 1 周之前
父節點
當前提交
7a3c7f0476

+ 1 - 1
src/main/java/cn/com/qmth/ac/controller/AuthController.java

@@ -30,7 +30,7 @@ public class AuthController {
     @RequestMapping(value = "login/{schoolCode}", method = RequestMethod.GET)
     public void authentication(@ApiParam(value = "学校编码") @PathVariable("schoolCode") String schoolCode) {
         RedirectParam redirectParams = commonService.authentication(schoolCode);
-        commonService.redirect(redirectParams);
+        // commonService.redirect(redirectParams);
     }
 
     @ApiOperation(value = "cas鉴权退出接口")

+ 4 - 0
src/main/java/cn/com/qmth/ac/service/impl/CommonServiceImpl.java

@@ -147,10 +147,14 @@ public class CommonServiceImpl implements CommonService {
                         rp.setReturnUrl(ecLogin);
                     }
                 }
+                HttpServletResponse response = ServletUtil.getResponse();
+
+                response.getWriter().print(data);
             } catch (IOException e) {
                 throw new StatusException("ticket校验出错", e);
             }
         }
+
         return rp;
     }