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