| | |
| | | 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 { |
| | | // 邮箱注册 |
| | |
| | | userRecom.setUserId(party_reco.getUserId()); |
| | | userRecom.setRecomUserId(party.getUserId()); |
| | | this.userRecomService.save(userRecom); |
| | | party = getById(party.getUserId()); |
| | | party.setUserRecom(party_reco.getUserId()); |
| | | updateById(party); |
| | | } |