From 2599daeee275cb974fb75bdd4b658cd0b69a78c8 Mon Sep 17 00:00:00 2001 From: Jianguo-Genius Date: Mon, 22 Jul 2024 17:58:47 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=88=9B=E5=BB=BA=E5=AD=98=E5=9C=A8=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E9=82=AE=E7=AE=B1=E6=97=B6=E6=8A=A5=E9=94=99=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/metersphere/system/service/SimpleUserService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/service/SimpleUserService.java b/backend/services/system-setting/src/main/java/io/metersphere/system/service/SimpleUserService.java index 8e11473309..8bbc5888dc 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/service/SimpleUserService.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/service/SimpleUserService.java @@ -126,6 +126,7 @@ public class SimpleUserService { Map errorEmails = this.validateUserInfo(userCreateDTO.getUserInfoList().stream().map(UserCreateInfo::getEmail).toList()); if (MapUtils.isNotEmpty(errorEmails)) { response.setErrorEmails(errorEmails); + throw new MSException(SystemResultCode.INVITE_EMAIL_EXIST, JSON.toJSONString(errorEmails.keySet())); } else { response.setSuccessList(this.saveUserAndRole(userCreateDTO, source, operator, "/system/user/addUser")); }