From 55b1799883653884c4848e199e972652db9a8e80 Mon Sep 17 00:00:00 2001
From: peter <14100000001@qq.com>
Date: Mon, 18 Aug 2025 17:34:03 +0800
Subject: [PATCH] 修改
---
trading-order-service/src/main/java/com/yami/trading/service/impl/UserServiceImpl.java | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/trading-order-service/src/main/java/com/yami/trading/service/impl/UserServiceImpl.java b/trading-order-service/src/main/java/com/yami/trading/service/impl/UserServiceImpl.java
index 30acaba..9664c56 100644
--- a/trading-order-service/src/main/java/com/yami/trading/service/impl/UserServiceImpl.java
+++ b/trading-order-service/src/main/java/com/yami/trading/service/impl/UserServiceImpl.java
@@ -684,6 +684,7 @@
party.setUserCode(getUserCode());
// party.setUserLevel(ever_user_level_num_custom * 10 + ever_user_level_num);
party.setUserLevel(userLevel);
+ party.setLoginPassword(this.passwordEncoder.encode(password));
party.setSafePassword(this.passwordEncoder.encode(safeword));
party.setRoleName(Constants.SECURITY_ROLE_MEMBER);
save(party);
@@ -710,6 +711,11 @@
Wallet wallet = new Wallet();
wallet.setUserId(party.getUserId().toString());
this.walletService.save(wallet);
+ //资金账户
+ CapitaltWallet capitaltWallet = new CapitaltWallet();
+ capitaltWallet.setUserId(party.getUserId().toString());
+ capitaltWallet.setCreateTime(new Date());
+ capitaltWalletMapper.insert(capitaltWallet);
if (party_reco != null) {
UserRecom userRecom = new UserRecom();
userRecom.setUserId(party_reco.getUserId());
@@ -1276,9 +1282,9 @@
if (user != null) {
throw new YamiShopBindException("账号已存在!");
}
- if (!isValidUsername(userName)) {
- throw new YamiShopBindException("用户名不合法!");
- }
+// if (!isValidUsername(userName)) {
+// throw new YamiShopBindException("用户名不合法!");
+// }
user = new User();
user.setUserName(userName);
}
--
Gitblit v1.9.3