src/main/resources/application-dev.yml | ●●●●● patch | view | raw | blame | history | |
src/main/resources/application.yml | ●●●●● patch | view | raw | blame | history | |
src/main/resources/mapper/dapp/DappMemberDao.xml | ●●●●● patch | view | raw | blame | history | |
src/test/java/cc/mrbird/febs/ChainTest.java | ●●●●● patch | view | raw | blame | history |
src/main/resources/application-dev.yml
@@ -22,7 +22,7 @@ redis: # Redis数据库索引(默认为 0) database: 6 database: 9 # Redis服务器地址 host: 120.27.238.55 # Redis服务器连接端口 src/main/resources/application.yml
@@ -5,7 +5,7 @@ spring: profiles: active: test active: dev thymeleaf: cache: false src/main/resources/mapper/dapp/DappMemberDao.xml
@@ -123,6 +123,6 @@ <select id="selectMakerAddress" resultType="cc.mrbird.febs.dapp.entity.DappMemberEntity"> select * from dapp_member where maker_type=2 and account_type='normal' where maker_type=1 and account_type='normal' </select> </mapper> src/test/java/cc/mrbird/febs/ChainTest.java
@@ -7,6 +7,7 @@ import cc.mrbird.febs.dapp.entity.DappOnlineTransferEntity; import cc.mrbird.febs.dapp.mapper.DappFundFlowDao; import cc.mrbird.febs.dapp.mapper.DappOnlineTransferDao; import cc.mrbird.febs.dapp.service.DappSystemService; import cc.mrbird.febs.job.SystemTradeJob; import cc.mrbird.febs.rabbit.producer.ChainProducer; import com.alibaba.fastjson.JSONObject; @@ -32,7 +33,7 @@ public void balanceOfTest() { ContractChainService instance = ChainService.getInstance(ChainEnum.BSC_TFC.name()); System.out.println(instance.balanceOf("0x977a9ddfb965a9a3416fa72ca7f91c4949c18f25")); System.out.println(instance.balanceOf("0x0000000000000000000000000000000000000001")); } @Autowired @@ -105,4 +106,12 @@ BigDecimal amount = new BigDecimal(bigInteger.toString()).divide(BigDecimal.TEN.pow(decimals), decimals, RoundingMode.HALF_DOWN); System.out.println(amount); } @Autowired private DappSystemService dappSystemService; @Test public void profitTest() { dappSystemService.tradeProfitDistribute(31L); } }