Parcourir la source

根据ticket获取用户信息和token

vincent il y a 3 ans
Parent
commit
75b368264b

+ 1 - 1
maxkey-webs/maxkey-web-maxkey/src/main/java/org/maxkey/web/contorller/ThirdLoginController.java

@@ -152,7 +152,7 @@ public class ThirdLoginController
         if(user==null){
             return new RetResult().setMsg("请求失败,token无效").setData(null).setCode(RetCode.SUCCESS);
         }
-        redisConnection.setex(ticket, 60 * 60 * 24 * 1, JSON.toJSONString(user));
+        redisConnection.setex(ticket, 60 * 60 * 24 * 1, JSON.toJSONString(result));
         redisConnection.close();
         result = new JSONObject();
         result.put("ticket", ticket);