From a9c9e15f24586a50611168b1315e6fd291ed3e1c Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Wed, 14 Dec 2022 14:23:49 +0800
Subject: [PATCH] 20221213转币

---
 src/main/java/cc/mrbird/febs/dapp/contract/ContractMain.java |   30 +++++++++++++++---------------
 1 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/src/main/java/cc/mrbird/febs/dapp/contract/ContractMain.java b/src/main/java/cc/mrbird/febs/dapp/contract/ContractMain.java
index 7e6ff46..02a09b8 100644
--- a/src/main/java/cc/mrbird/febs/dapp/contract/ContractMain.java
+++ b/src/main/java/cc/mrbird/febs/dapp/contract/ContractMain.java
@@ -132,20 +132,20 @@
                 // 更新区块编号 TODO
                 redisService.set("BNB_BLOCK_NUMBER",e.log.getBlockNumber().intValue());
                 //投注人
-                DappMemberEntity dappMemberEntity = dappMemberDao.selectByAddress(from, "BSC");
-                if(ObjectUtil.isNotEmpty(dappMemberEntity)){
-                    //投注人是否加入
-                    DappSystemProfit dappSystemProfit = dappSystemProfitDao.selectByMemberIdAndState(dappMemberEntity.getId(), DappSystemProfit.STATE_IN);
-                    if(ObjectUtil.isNotEmpty(dappSystemProfit)){
-                        List<DappFundFlowEntity> dappFundFlowEntities = dappFundFlowDao.selectListByState(DappFundFlowEntity.WITHDRAW_STATUS_ING);
-                        if(CollUtil.isNotEmpty(dappFundFlowEntities)){
-                            for(DappFundFlowEntity dappFundFlowEntity : dappFundFlowEntities){
-                                //发送转币消息
-                                chainProducer.sendBnbTransferMsg(dappFundFlowEntity.getId());
-                            }
-                        }
-                    }
-                }
+//                DappMemberEntity dappMemberEntity = dappMemberDao.selectByAddress(from, "BSC");
+//                if(ObjectUtil.isNotEmpty(dappMemberEntity)){
+//                    //投注人是否加入
+//                    DappSystemProfit dappSystemProfit = dappSystemProfitDao.selectByMemberIdAndState(dappMemberEntity.getId(), DappSystemProfit.STATE_IN);
+//                    if(ObjectUtil.isNotEmpty(dappSystemProfit)){
+//                        List<DappFundFlowEntity> dappFundFlowEntities = dappFundFlowDao.selectListByState(DappFundFlowEntity.WITHDRAW_STATUS_ING);
+//                        if(CollUtil.isNotEmpty(dappFundFlowEntities)){
+//                            for(DappFundFlowEntity dappFundFlowEntity : dappFundFlowEntities){
+//                                //发送转币消息
+//                                chainProducer.sendBnbTransferMsg(dappFundFlowEntity.getId());
+//                            }
+//                        }
+//                    }
+//                }
             }catch (Exception exception) {
                 exception.printStackTrace();
             }
@@ -174,7 +174,7 @@
         ContractMain contractMain = new ContractMain();
 
         String address = "0xd9076245473060dda1a65f5f3d89a4d0598995e6";
-        BigInteger bigInteger = new BigInteger(Convert.toWei("0.0003", Convert.Unit.ETHER).setScale(0).toString());
+        BigInteger bigInteger = new BigInteger(Convert.toWei("0.00105000", Convert.Unit.ETHER).setScale(0).toString());
         String hash = contractMain.trans(bigInteger,address);
         System.out.println(hash);
     }

--
Gitblit v1.9.1