Browse Source

在线用户

tianwu.sun 9 months ago
parent
commit
47c337b5e4
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/java/com/bootdo/system/controller/LoginController.java

+ 2 - 1
src/main/java/com/bootdo/system/controller/LoginController.java

@@ -160,8 +160,9 @@ public class LoginController extends BaseController {
 
     @Log("单点登录")
     @GetMapping("/ssoLogin")
-    String ssoLogin(String token) {
+    String ssoLogin(HttpServletRequest request) {
         try {
+            String token = request.getHeader("token");
             if(ObjectUtils.isEmpty(token)){
                 throw new Exception("token不能为空");
             }