From 31102c3b82c4c83ae28963539e14715377d63fda Mon Sep 17 00:00:00 2001 From: wenyann <64353056+wenyann@users.noreply.github.com> Date: Mon, 11 May 2020 16:26:42 +0800 Subject: [PATCH] =?UTF-8?q?id=E5=94=AF=E4=B8=80=E6=80=A7=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/main/java/io/metersphere/service/UserService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/io/metersphere/service/UserService.java b/backend/src/main/java/io/metersphere/service/UserService.java index 348e4ed430..18d03b6dd0 100644 --- a/backend/src/main/java/io/metersphere/service/UserService.java +++ b/backend/src/main/java/io/metersphere/service/UserService.java @@ -52,7 +52,7 @@ public class UserService { String id = user.getId(); User user1 = userMapper.selectByPrimaryKey(id); if (user1 != null) { - MSException.throwException("user_id_already_exists"); + MSException.throwException(Translator.get("user_id_already_exists")); }else{ createUser(user); } @@ -300,7 +300,7 @@ public class UserService { return user; } } - MSException.throwException("password_modification_failed"); + MSException.throwException(Translator.get("password_modification_failed")); } return null; }