From 5e3e6bacb21f7416b822b708cb6595d3cb45f573 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Mon, 05 Dec 2022 14:04:26 +0800
Subject: [PATCH] 20221130
---
src/test/java/cc/mrbird/febs/MemberTest.java | 18 ++++++++++++++----
src/main/resources/application-prod.yml | 2 +-
src/main/resources/templates/febs/views/dapp/money-change-flow.html | 2 +-
3 files changed, 16 insertions(+), 6 deletions(-)
diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml
index c33a05f..adc517a 100644
--- a/src/main/resources/application-prod.yml
+++ b/src/main/resources/application-prod.yml
@@ -2,7 +2,7 @@
datasource:
dynamic:
# 是否开启 SQL日志输出,生产环境建议关闭,有性能损耗
- p6spy: false
+ p6spy: true
hikari:
connection-timeout: 30000
max-lifetime: 1800000
diff --git a/src/main/resources/templates/febs/views/dapp/money-change-flow.html b/src/main/resources/templates/febs/views/dapp/money-change-flow.html
index e4e9579..b467e38 100644
--- a/src/main/resources/templates/febs/views/dapp/money-change-flow.html
+++ b/src/main/resources/templates/febs/views/dapp/money-change-flow.html
@@ -202,7 +202,7 @@
{field: 'fromHash', title: 'FromHash', minWidth: 150},
{title: '操作',
templet: function (d) {
- if(d.status == 3){
+ if(d.status == 1){
return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="transferManual" shiro:hasPermission="transferManual:update">手动转账</button>'
}else{
return ''
diff --git a/src/test/java/cc/mrbird/febs/MemberTest.java b/src/test/java/cc/mrbird/febs/MemberTest.java
index 23a8886..da7c5d6 100644
--- a/src/test/java/cc/mrbird/febs/MemberTest.java
+++ b/src/test/java/cc/mrbird/febs/MemberTest.java
@@ -9,6 +9,7 @@
import cc.mrbird.febs.dapp.mapper.DappFundFlowDao;
import cc.mrbird.febs.dapp.mapper.DappMemberDao;
import cc.mrbird.febs.dapp.mapper.DataDictionaryCustomMapper;
+import cc.mrbird.febs.rabbit.producer.ChainProducer;
import cn.hutool.core.util.StrUtil;
import org.apache.commons.lang3.StringUtils;
import org.junit.jupiter.api.Test;
@@ -33,6 +34,9 @@
@Autowired
private DappFundFlowDao dappFundFlowDao;
+
+ @Autowired
+ private ChainProducer chainProducer;
// String address = dappMemberEntity.getAddress();
// String hash = ChainService.getInstance(ChainEnum.BSC_USDT.name()).transfer(address, amount);
// if(StrUtil.isEmpty(hash)){
@@ -40,15 +44,21 @@
// }
@Test
public void tranfer(){
- String address = "0xc27a91615d9fe5b7e18daae0a6d1cbd1a9e77b81";
- BigDecimal amount = new BigDecimal("0.0009");
- String hash = ChainService.getInstance(ChainEnum.BNB.name()).transferBaseToken(address, amount);
+// String address = "0xc5ce0041b2c5a075003d3a631304d272572716cb";
+// BigDecimal amount = new BigDecimal("0.00000540");
+// String hash = ChainService.getInstance(ChainEnum.BNB.name()).transferBaseToken(address, amount);
//// if(StrUtil.isEmpty(hash)){
//// return;
//// }
// BigDecimal balance = ChainService.getInstance(ChainEnum.WBNB.name()).balanceOf(ChainEnum.WBNB.getAddress());
// Integer count = dappFundFlowDao.updateStatusById(DappFundFlowEntity.WITHDRAW_STATUS_AGREE,464L);
- System.out.println(hash);
+// System.out.println(hash);
+
+ //发送转币消息
+ chainProducer.sendBnbTransferMsg(93L);
+ chainProducer.sendBnbTransferMsg(94L);
+ chainProducer.sendBnbTransferMsg(95L);
+ chainProducer.sendBnbTransferMsg(96L);
}
@Test
--
Gitblit v1.9.1