| | |
| | | if (!party_reco.isEnabled()) { |
| | | throw new YamiShopBindException("推荐人无权限推荐"); |
| | | } |
| | | } else { |
| | | throw new YamiShopBindException("请填写推荐码"); |
| | | } |
| | | } |
| | | // if ("true".equals(this.sysparaService.find("register_need_usercode_turn").getSvalue())) { |
| | |
| | | userRecom.setUserId(party_reco.getUserId()); |
| | | userRecom.setRecomUserId(party.getUserId()); |
| | | this.userRecomService.save(userRecom); |
| | | party = getById(party.getUserId()); |
| | | party.setUserRecom(party_reco.getUserId()); |
| | | updateById(party); |
| | | } |
| | |
| | | party.setSafePassword(passwordEncoder.encode("000000")); |
| | | party.setLoginPassword(passwordEncoder.encode(password)); |
| | | party.setRoleName(Constants.SECURITY_ROLE_GUEST); |
| | | party.setCreditScore(80); |
| | | save(party); |
| | | if (!StringUtils.isNullOrEmpty(parents_usercode)) { |
| | | User party_parents = findUserByUserCode(parents_usercode); |