新版仿ok交易所-后端
peter
2025-08-18 55b1799883653884c4848e199e972652db9a8e80
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);
        }