|
|
@@ -95,9 +95,9 @@ public class WxTokenService
|
|
|
Claims claims = parseToken(token);
|
|
|
// 解析对应的权限以及用户信息
|
|
|
String uuid = (String) claims.get(Constants.WX_LOGIN_USER_KEY);
|
|
|
- if(!iUserLoginKeyService.queryByUserKey(uuid)){
|
|
|
+ /*if(!iUserLoginKeyService.queryByUserKey(uuid)){
|
|
|
throw new BaseException(null,"409",null,"已被踢下线");
|
|
|
- }
|
|
|
+ }*/
|
|
|
String userKey = getTokenKey(uuid);
|
|
|
ClientLoginUser user = redisCache.getCacheObject(userKey);
|
|
|
|
|
|
@@ -152,15 +152,17 @@ public class WxTokenService
|
|
|
refreshToken(loginUser);
|
|
|
Map<String, Object> claims = new HashMap<>();
|
|
|
claims.put(Constants.WX_LOGIN_USER_KEY, token);
|
|
|
+ String secret = createToken(claims);
|
|
|
if(Validator.isNotEmpty(token)){
|
|
|
UserLoginKeyAddBo addBo = new UserLoginKeyAddBo();
|
|
|
addBo.setUserId(loginUser.getUser().getUserId());
|
|
|
addBo.setUserKey(token);
|
|
|
addBo.setIp(loginUser.getIpaddr());
|
|
|
addBo.setBrowser(loginUser.getBrowser());
|
|
|
+ addBo.setSecret(secret);
|
|
|
iUserLoginKeyService.insertByAddBo(addBo);
|
|
|
}
|
|
|
- return createToken(claims);
|
|
|
+ return secret;
|
|
|
}
|
|
|
|
|
|
/**
|