From 21fbc855f9f4852e92b44dc452c6fddf8bab2f3f Mon Sep 17 00:00:00 2001 From: jack ning Date: Wed, 18 Dec 2024 16:30:02 +0800 Subject: [PATCH] Sync from bytedesk-private: update --- .../com/bytedesk/core/constant/I18Consts.java | 6 +++++- .../bytedesk/core/message/MessageTypeEnum.java | 2 +- .../com/bytedesk/core/push/PushRestService.java | 15 ++++++++------- .../src/main/resources/application-dev.properties | 4 ++-- 4 files changed, 16 insertions(+), 11 deletions(-) diff --git a/modules/core/src/main/java/com/bytedesk/core/constant/I18Consts.java b/modules/core/src/main/java/com/bytedesk/core/constant/I18Consts.java index 703d6413d7..da98f2451c 100644 --- a/modules/core/src/main/java/com/bytedesk/core/constant/I18Consts.java +++ b/modules/core/src/main/java/com/bytedesk/core/constant/I18Consts.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-26 22:25:47 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-12-16 11:26:38 + * @LastEditTime: 2024-12-18 16:26:29 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -30,6 +30,10 @@ public class I18Consts { public static final String I18N_PREFIX = "i18n."; // public static final String I18N_USERNAME_OR_PASSWORD_INCORRECT = I18N_PREFIX + "username.or.password.incorrect"; + public static final String I18N_MOBILE_ALREADY_EXISTS = I18N_PREFIX + "mobile.already.exists"; + public static final String I18N_EMAIL_ALREADY_EXISTS = I18N_PREFIX + "email.already.exists"; + public static final String I18N_MOBILE_NOT_EXISTS = I18N_PREFIX + "mobile.not.exists"; + public static final String I18N_EMAIL_NOT_EXISTS = I18N_PREFIX + "email.not.exists"; // captcha public static final String I18N_AUTH_CAPTCHA_SEND_SUCCESS = I18N_PREFIX + "auth.captcha.send.success"; public static final String I18N_AUTH_CAPTCHA_ERROR = I18N_PREFIX + "auth.captcha.error"; diff --git a/modules/core/src/main/java/com/bytedesk/core/message/MessageTypeEnum.java b/modules/core/src/main/java/com/bytedesk/core/message/MessageTypeEnum.java index 9b4c3ec49a..a7f06a29a3 100644 --- a/modules/core/src/main/java/com/bytedesk/core/message/MessageTypeEnum.java +++ b/modules/core/src/main/java/com/bytedesk/core/message/MessageTypeEnum.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-06-05 21:50:54 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-12-03 17:06:25 + * @LastEditTime: 2024-12-18 16:28:03 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. diff --git a/modules/core/src/main/java/com/bytedesk/core/push/PushRestService.java b/modules/core/src/main/java/com/bytedesk/core/push/PushRestService.java index d2cb56867d..1c9bb001dd 100644 --- a/modules/core/src/main/java/com/bytedesk/core/push/PushRestService.java +++ b/modules/core/src/main/java/com/bytedesk/core/push/PushRestService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-25 15:41:33 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-11-28 21:00:10 + * @LastEditTime: 2024-12-18 16:26:47 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -31,6 +31,7 @@ import org.springframework.scheduling.annotation.Async; import org.springframework.stereotype.Service; import com.bytedesk.core.base.BaseRestService; import com.bytedesk.core.config.BytedeskProperties; +import com.bytedesk.core.constant.I18Consts; import com.bytedesk.core.constant.TypeConsts; import com.bytedesk.core.exception.EmailExistsException; import com.bytedesk.core.exception.MobileExistsException; @@ -89,30 +90,30 @@ public class PushRestService extends BaseRestService