Helius
2022-06-07 6562e04677044d4c15ee303d922bfeabe56320fb
src/main/java/cc/mrbird/febs/dapp/service/impl/DappWalletServiceImpl.java
@@ -204,6 +204,13 @@
//        ChainService.getInstance(ChainEnum.BSC_USDT_SOURCE.name()).balanceOf(member.getAddress());
//        ChainService.getInstance(ChainEnum.BSC_TFC_SOURCE.name()).balanceOf(member.getAddress());
        if (DappFundFlowEntity.TYPE_SALE == transferDto.getType()) {
            String hasStart = redisUtils.getString(AppContants.SYSTEM_START_FLAG);
            if (!"start".equals(hasStart)) {
                throw new FebsException("系统还未启动");
            }
        }
        DappFundFlowEntity fundFlow = new DappFundFlowEntity(member.getId(), transferDto.getAmount(), transferDto.getType(), 1, transferDto.getFee(), transferDto.getTxHash());
        fundFlow.setNewestPrice(transferDto.getPrice());
        dappFundFlowDao.insert(fundFlow);