| | |
| | | import com.xcong.excoin.common.system.service.CommonService; |
| | | import com.xcong.excoin.modules.coin.dao.MemberAccountMoneyChangeDao; |
| | | import com.xcong.excoin.modules.coin.entity.MemberAccountMoneyChange; |
| | | import com.xcong.excoin.modules.fish.dao.MemberAccountGoldDao; |
| | | import com.xcong.excoin.modules.fish.entity.MemberAccountGold; |
| | | import com.xcong.excoin.modules.member.dao.*; |
| | | import com.xcong.excoin.modules.member.entity.*; |
| | | import com.xcong.excoin.modules.member.parameter.dto.MemberAddCoinAddressDto; |
| | |
| | | MemberAuthenticationDao memberAuthenticationDao; |
| | | |
| | | @Resource |
| | | MemberAccountGoldDao memberAccountGoldDao; |
| | | |
| | | @Resource |
| | | RedisUtils redisUtils; |
| | | |
| | | @Resource |
| | |
| | | return Result.fail("账号已存在"); |
| | | } |
| | | |
| | | // boolean isTrue = commonservice.verifyCode(registerDto.getAccount(), registerDto.getCode()); |
| | | // if (!isTrue) { |
| | | // return Result.fail(MessageSourceUtils.getString("common_verify_code")); |
| | | // } |
| | | boolean isTrue = commonservice.verifyCode(registerDto.getAccount(), registerDto.getCode()); |
| | | if (!isTrue) { |
| | | return Result.fail(MessageSourceUtils.getString("common_verify_code")); |
| | | } |
| | | |
| | | member = new MemberEntity(); |
| | | member.setPassword(SecureUtil.md5(registerDto.getPassword())); |
| | |
| | | member.setRefererIds(ids); |
| | | memberDao.updateById(member); |
| | | |
| | | MemberAccountGold memberAccountGoldNew = new MemberAccountGold(); |
| | | memberAccountGoldNew.setMemberId(member.getId()); |
| | | memberAccountGoldNew.setTotalBalance(BigDecimal.ZERO); |
| | | memberAccountGoldNew.setAvailableBalance(BigDecimal.ZERO); |
| | | memberAccountGoldNew.setFrozenBalance(BigDecimal.ZERO); |
| | | memberAccountGoldDao.insert(memberAccountGoldNew); |
| | | |
| | | //初始化合约钱包 |
| | | MemberWalletContractEntity walletContract = new MemberWalletContractEntity(); |
| | | walletContract.setMemberId(member.getId()); |