From fda778d84fff4623493fc72b455f6bc81a7faf34 Mon Sep 17 00:00:00 2001 From: La123123 <617330105@qq.com> Date: Tue, 14 Apr 2026 16:24:08 +0800 Subject: [PATCH] =?UTF-8?q?token=E5=88=B7=E6=96=B0=E6=97=B6=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/bx/implatform/service/impl/UserServiceImpl.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/im-platform/src/main/java/com/bx/implatform/service/impl/UserServiceImpl.java b/im-platform/src/main/java/com/bx/implatform/service/impl/UserServiceImpl.java index 0e2b374..9dd1860 100644 --- a/im-platform/src/main/java/com/bx/implatform/service/impl/UserServiceImpl.java +++ b/im-platform/src/main/java/com/bx/implatform/service/impl/UserServiceImpl.java @@ -234,6 +234,12 @@ public class UserServiceImpl extends ServiceImpl 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(),