From 2cc918fe82191b8cb5a4c7e1323e024cb9333d91 Mon Sep 17 00:00:00 2001
From: zj <1772600164@qq.com>
Date: Fri, 24 Oct 2025 15:52:09 +0800
Subject: [PATCH] 1
---
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