From b28a97e1bf66e3279e78f31ce58122427787ceec Mon Sep 17 00:00:00 2001
From: zj <1772600164@qq.com>
Date: Thu, 11 Jun 2026 09:44:20 +0800
Subject: [PATCH] 1

---
 trading-order-admin/src/main/java/com/yami/trading/admin/controller/service/impl/SysUserOperServiceImpl.java |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/trading-order-admin/src/main/java/com/yami/trading/admin/controller/service/impl/SysUserOperServiceImpl.java b/trading-order-admin/src/main/java/com/yami/trading/admin/controller/service/impl/SysUserOperServiceImpl.java
index 77c119e..d0f3d8f 100644
--- a/trading-order-admin/src/main/java/com/yami/trading/admin/controller/service/impl/SysUserOperServiceImpl.java
+++ b/trading-order-admin/src/main/java/com/yami/trading/admin/controller/service/impl/SysUserOperServiceImpl.java
@@ -66,7 +66,7 @@
         SysUser dbUser = sysUserService.getOne(new LambdaQueryWrapper<SysUser>()
                 .eq(SysUser::getUsername, userName));
         if (dbUser != null) {
-            throw new YamiShopBindException("该用户已存在");
+            throw new YamiShopBindException("User already exists");
         }
         List<SysRole> list = roleService.list(Wrappers.<SysRole>query()
                 .lambda().eq(SysRole::getRoleName, "代理商"));
@@ -91,11 +91,11 @@
     public void restPassword(String password, String id) {
         Agent agent = agentService.getById(id);
         if (agent == null) {
-            throw new YamiShopBindException("参数错误!");
+            throw new YamiShopBindException("Invalid parameters!");
         }
         User user = userService.getById(agent.getUserId());
         if (user == null) {
-            throw new YamiShopBindException("代理商不存在!");
+            throw new YamiShopBindException("Agent does not exist!");
         }
         user.setLoginPassword(passwordEncoder.encode(password));
         userService.updateById(user);
@@ -124,12 +124,12 @@
     public void unbindGoogleAuthCode(String id) {
         Agent agent = agentService.getById(id);
         if (agent == null) {
-            throw new YamiShopBindException("参数错误");
+            throw new YamiShopBindException("Invalid parameters");
         }
         User user = userService.getById(agent.getUserId());
         SysUser sysUser = sysUserService.getByUserName(user.getUserName());
         if (sysUser == null) {
-            throw new YamiShopBindException("参数错误");
+            throw new YamiShopBindException("Invalid parameters");
         }
         sysUser.setGoogleAuthSecret(null);
         sysUser.setGoogleAuthBind(false);
@@ -151,12 +151,12 @@
     public void bindGoogleAuthCode(String googleAuthSecret, String id) {
         Agent agent = agentService.getById(id);
         if (agent == null) {
-            throw new YamiShopBindException("参数错误");
+            throw new YamiShopBindException("Invalid parameters");
         }
         User user = userService.getById(agent.getUserId());
         SysUser sysUser = sysUserService.getByUserName(user.getUserName());
         if (sysUser == null) {
-            throw new YamiShopBindException("参数错误");
+            throw new YamiShopBindException("Invalid parameters");
         }
         sysUser.setGoogleAuthSecret(googleAuthSecret);
         sysUser.setGoogleAuthBind(true);

--
Gitblit v1.9.3