From cbca666e7b7305992bdcf4172581194b84736bdb Mon Sep 17 00:00:00 2001 From: xupei Date: Fri, 28 Nov 2025 16:36:34 +0800 Subject: [PATCH] =?UTF-8?q?BUGFIX:=20=E8=B4=A6=E5=8F=B7=E9=87=8D=E7=BD=AE?= =?UTF-8?q?=E4=B8=BA=E6=B8=B8=E5=AE=A2=E5=90=8E=EF=BC=8C=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E6=B7=B7=E4=B9=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/ai/da/service/impl/AccountServiceImpl.java | 4 ++-- src/main/resources/messages_en.properties | 1 + src/main/resources/messages_zh.properties | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/ai/da/service/impl/AccountServiceImpl.java b/src/main/java/com/ai/da/service/impl/AccountServiceImpl.java index 463e5282..885f3eb8 100644 --- a/src/main/java/com/ai/da/service/impl/AccountServiceImpl.java +++ b/src/main/java/com/ai/da/service/impl/AccountServiceImpl.java @@ -306,8 +306,8 @@ public class AccountServiceImpl extends ServiceImpl impl setEduAdminToExpire(account); } else { toVisitor(account); - return; - // throw new BusinessException("user.expired"); +// return; + throw new BusinessException("account.expired", ResultEnum.PROMPT.getCode()); } } } diff --git a/src/main/resources/messages_en.properties b/src/main/resources/messages_en.properties index 8adfeeab..11bce256 100644 --- a/src/main/resources/messages_en.properties +++ b/src/main/resources/messages_en.properties @@ -204,6 +204,7 @@ hsv.value.cannot.exceed.the.maximum.of.8=hsv value cannot exceed the maximum of the.workspaceName.already.exists=A workspace with this name already exists. unable.to.delete.the.workspace.you.are.currently.using=The workspace you are currently using cannot be deleted. Please select another workspace before trying to delete. classificationName.already.exists=The label name you've entered already exists. Please enter a different label name to avoid duplication. +account.expired=Your subscription has expired, and your account has been reset to a visitor account. Please log in again from the [Individual] entry. If you have any questions, please contact us at info@code-create.com.hk # Warnings: # 用来提醒用户可能会导致不良后果的操作,但不一定是错误。用户需要认真考虑是否继续当前操作。 diff --git a/src/main/resources/messages_zh.properties b/src/main/resources/messages_zh.properties index 91893351..051a4194 100644 --- a/src/main/resources/messages_zh.properties +++ b/src/main/resources/messages_zh.properties @@ -222,6 +222,7 @@ generate.interface.error=生成接口出现错误。(请稍后再试。如果 chat-bot.interface.exception=聊天机器人接口出现错误。(请稍后再试。如果问题持续,请联系我们的help@aida.com.hk) compose-layer.interface.exception=图层合并时出现问题。(请稍后再试。如果问题持续,请联系我们的help@aida.com.hk) cloth-classification.interface.exception=获取服装类别时出现问题。(请稍后再试。如果问题持续,请联系我们的help@aida.com.hk) +account.expired=您的订阅已过期,账号已被重置为访客身份,请从【个人账号】入口重新登录。如有疑问,请联系 info@code-create.com.hk。 # 多语言返回 OVERALL=整体