xiaoyong931011
2021-11-25 de7848e8f069535e0d26f948948fa0f06586dcee
src/main/java/com/xcong/excoin/modules/member/service/impl/MemberServiceImpl.java
@@ -15,6 +15,8 @@
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;
@@ -85,6 +87,9 @@
    MemberAuthenticationDao memberAuthenticationDao;
    @Resource
    MemberAccountGoldDao memberAccountGoldDao;
    @Resource
    RedisUtils redisUtils;
    @Resource
@@ -122,10 +127,10 @@
            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()));
@@ -187,6 +192,13 @@
        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());