新版仿ok交易所-后端
zyy
2025-12-16 09fa0b6d38a97f3e89cb30aa2d4b0030bbcb5b6a
trading-order-service/src/main/java/com/yami/trading/service/impl/UserServiceImpl.java
@@ -694,6 +694,10 @@
            if (StringUtils.isEmptyString(username) || username.length() > 20) {
                throw new YamiShopBindException("请输入正确的手机号码");
            }
            User partyPhone = findPartyByVerifiedPhone(username);
            if (null != partyPhone) {
                throw new YamiShopBindException("电话号码已绑定其他用户");
            }
            this.savePhone(username, party.getUserId().toString());
        } else {
            // 邮箱注册
@@ -715,6 +719,7 @@
            userRecom.setUserId(party_reco.getUserId());
            userRecom.setRecomUserId(party.getUserId());
            this.userRecomService.save(userRecom);
            party = getById(party.getUserId());
            party.setUserRecom(party_reco.getUserId());
            updateById(party);
        }