xiaoyong931011
2021-12-07 37518c255d676f17e661dfdfd6152de3405f7dcd
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;
@@ -83,6 +85,9 @@
    @Resource
    MemberAuthenticationDao memberAuthenticationDao;
    @Resource
    MemberAccountGoldDao memberAccountGoldDao;
    @Resource
    RedisUtils redisUtils;
@@ -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());