新版仿ok交易所-后端
1
zyy
2025-09-18 2c9a7f09346d8e1cd3daa0b2a45be0467d73b045
1
1 files modified
8 ■■■■ changed files
trading-order-service/src/main/java/com/yami/trading/service/impl/UserServiceImpl.java 8 ●●●● patch | view | raw | blame | history
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);
        party.setCreditScore(80);
@@ -709,8 +710,13 @@
//        Role role = this.roleService.findRoleByName(Constants.SECURITY_ROLE_MEMBER);
        // usdt账户
        Wallet wallet = new Wallet();
        wallet.setUserId(party.getUserId().toString());
        wallet.setUserId(party.getUserId());
        this.walletService.save(wallet);
        CapitaltWallet capitaltWallet = new CapitaltWallet();
        capitaltWallet.setUserId(party.getUserId());
        capitaltWalletMapper.insert(capitaltWallet);
        if (party_reco != null) {
            UserRecom userRecom = new UserRecom();
            userRecom.setUserId(party_reco.getUserId());