|
|
|
@ -234,6 +234,12 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us |
|
|
|
String tip = String.format("您的账号因'%s'被管理员封禁,请联系客服!",user.getReason()); |
|
|
|
throw new GlobalException(tip); |
|
|
|
} |
|
|
|
|
|
|
|
//未设置套餐或套餐过期
|
|
|
|
if(imAgentService.isPackageExpire(user.getUniqueToken())) { |
|
|
|
throw new GlobalException("账户异常"); |
|
|
|
} |
|
|
|
|
|
|
|
String accessToken = |
|
|
|
JwtUtil.sign(userId, strJson, jwtProperties.getAccessTokenExpireIn(), jwtProperties.getAccessTokenSecret()); |
|
|
|
String newRefreshToken = JwtUtil.sign(userId, strJson, jwtProperties.getRefreshTokenExpireIn(), |
|
|
|
|