xiaoyong931011
2023-06-05 7796c7966badf3ff79ce158d87587b690b70c088
src/main/java/cc/mrbird/febs/dapp/service/impl/DappWalletServiceImpl.java
@@ -704,10 +704,23 @@
                if(amountIn.compareTo(new BigDecimal(100)) != 0){
                    throw new FebsException("Limit per address 100 USDT");
                }
                BigDecimal amountInLast = dappChargeUsdtMapper.selectByMaxAmountMemberId(member.getId());
                DataDictionaryCustom systemAddressDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
                        PoolEnum.SYSTEM_ADDRESS.getType(),
                        PoolEnum.SYSTEM_ADDRESS.getCode()
                );
                if(StrUtil.isNotEmpty(systemAddressDic.getValue())){
                    if(!systemAddressDic.getValue().equals(dappMemberEntity.getAddress())){
                if(BigDecimal.ZERO.compareTo(amountInLast) < 0){
                    throw new FebsException("Limit per address 100 USDT");
                }
                    }
                }else{
                    if(BigDecimal.ZERO.compareTo(amountInLast) < 0){
                        throw new FebsException("Limit per address 100 USDT");
                    }
                }
                /**
                 * 验证账户是否有入金金额的10%的AUSD
                 */