新版仿ok交易所-后端
1
zj
2025-10-24 2cc918fe82191b8cb5a4c7e1323e024cb9333d91
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);
        }