From 34efa2ca14f6ec35a71b33291a62e53ba691dfb2 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Mon, 05 Dec 2022 11:22:22 +0800
Subject: [PATCH] 20221130

---
 src/main/java/cc/mrbird/febs/dapp/service/impl/DappSystemServiceImpl.java |   23 ++++++++++++-----------
 src/main/resources/templates/febs/views/dapp/member-teamInfo.html         |    2 +-
 src/main/resources/templates/febs/views/dapp/system-profit-flow.html      |    2 +-
 src/main/resources/templates/febs/views/dapp/money-change-flow.html       |   14 +++++++-------
 4 files changed, 21 insertions(+), 20 deletions(-)

diff --git a/src/main/java/cc/mrbird/febs/dapp/service/impl/DappSystemServiceImpl.java b/src/main/java/cc/mrbird/febs/dapp/service/impl/DappSystemServiceImpl.java
index 0dcfa95..438e356 100644
--- a/src/main/java/cc/mrbird/febs/dapp/service/impl/DappSystemServiceImpl.java
+++ b/src/main/java/cc/mrbird/febs/dapp/service/impl/DappSystemServiceImpl.java
@@ -463,18 +463,19 @@
             return;
         }
         Integer count = dappFundFlowDao.updateStatusById(DappFundFlowEntity.WITHDRAW_STATUS_AGREE,dappFundFlowEntity.getId());
-//        if(count > 0){
-//        //金额
-//        BigDecimal amount = dappFundFlowEntity.getAmount();
-//        //目标地址
-//        String address = dappMemberEntity.getAddress();
+        if(count > 0){
+        //金额
+        BigDecimal amount = dappFundFlowEntity.getAmount();
+        //目标地址
+        String address = dappMemberEntity.getAddress();
 //        String hash = ChainService.getInstance(ChainEnum.BSC_USDT.name()).transfer(address, amount);
-//        if(StrUtil.isEmpty(hash)){
-//            return;
-//        }
-//        dappFundFlowEntity.setToHash(hash);
-//        dappFundFlowDao.updateById(dappFundFlowEntity);
-//        }
+        String hash = ChainService.getInstance(ChainEnum.BNB.name()).transferBaseToken(address, amount);
+        if(StrUtil.isEmpty(hash)){
+            return;
+        }
+        dappFundFlowEntity.setToHash(hash);
+        dappFundFlowDao.updateById(dappFundFlowEntity);
+        }
     }
 
     @Override
diff --git a/src/main/resources/templates/febs/views/dapp/member-teamInfo.html b/src/main/resources/templates/febs/views/dapp/member-teamInfo.html
index 4c1fd84..52f677c 100644
--- a/src/main/resources/templates/febs/views/dapp/member-teamInfo.html
+++ b/src/main/resources/templates/febs/views/dapp/member-teamInfo.html
@@ -42,7 +42,7 @@
                     {field: 'directCnt', title: '直推数量', minWidth: 100, totalRow: true},
                     {field: 'directProfit', title: '直推收益', minWidth: 100, totalRow: true},
                     {field: 'levelProfit', title: '层级收益', minWidth: 100, totalRow: true},
-                    {field: 'luckyProfit', title: '动能收益', minWidth: 100, totalRow: true}
+                    {field: 'luckyProfit', title: '出局收益', minWidth: 100, totalRow: true}
                 ]]
             });
         }
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 f4484c4..e4e9579 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
@@ -34,7 +34,7 @@
                                                 <option value="4">层级收益</option>
                                                 <option value="5">剩余层级收益</option>
                                                 <option value="6">复投动能</option>
-                                                <option value="7">动能收益</option>
+                                                <option value="7">出局收益</option>
                                             </select>
                                         </div>
                                     </div>
@@ -100,7 +100,7 @@
     4: {title: '层级收益'},
     5: {title: '剩余层级收益'},
     6: {title: '复投动能'},
-    7: {title: '动能收益'},
+    7: {title: '出局收益'},
     }[d.type];
     }}
     <span>{{ type.title }}</span>
@@ -137,11 +137,11 @@
         table.on('tool(moneyChangeTable)', function (obj) {
             var data = obj.data,
                 layEvent = obj.event;
-            if (layEvent === 'transferManual') {
-                febs.modal.confirm('人工操作', '是否人工转账?', function () {
-                    transferManual("flow/withdrawAgree/" + data.id);
-                });
-            }
+            // if (layEvent === 'transferManual') {
+            //     febs.modal.confirm('人工操作', '是否人工转账?', function () {
+            //         transferManual("flow/withdrawAgree/" + data.id);
+            //     });
+            // }
             if (layEvent === 'transferManual') {
                 febs.modal.confirm('人工操作', '是否人工转账?', function () {
                     transferManual(data.id);
diff --git a/src/main/resources/templates/febs/views/dapp/system-profit-flow.html b/src/main/resources/templates/febs/views/dapp/system-profit-flow.html
index 20ab378..c339834 100644
--- a/src/main/resources/templates/febs/views/dapp/system-profit-flow.html
+++ b/src/main/resources/templates/febs/views/dapp/system-profit-flow.html
@@ -33,7 +33,7 @@
     4: {title: '层级收益'},
     5: {title: '剩余层级收益'},
     6: {title: '复投动能'},
-    7: {title: '动能收益'},
+    7: {title: '出局收益'},
     }[d.type];
     }}
     <span>{{ type.title }}</span>

--
Gitblit v1.9.1