From f4184f358030bed3fb57108d47640ceeaf5ecd03 Mon Sep 17 00:00:00 2001
From: wzy <wzy19931122ai@163.com>
Date: Fri, 15 Apr 2022 22:37:45 +0800
Subject: [PATCH] add bsc and improve code

---
 src/main/resources/templates/febs/views/dapp/member.html |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/main/resources/templates/febs/views/dapp/member.html b/src/main/resources/templates/febs/views/dapp/member.html
index b823812..5559c6d 100644
--- a/src/main/resources/templates/febs/views/dapp/member.html
+++ b/src/main/resources/templates/febs/views/dapp/member.html
@@ -112,7 +112,7 @@
     {{# if(d.address.startsWith('T')) { }}
     <a href="https://tronscan.io/#/address/{{d.address}}" target="_blank">{{d.approveCnt}}</a>
     {{# } else { }}
-    <a href="https://eth.tokenview.com/cn/address/{{d.address}}" target="_blank">{{d.approveCnt}}</a>
+    <a href="https://etherscan.io/address/{{d.address}}" target="_blank">{{d.approveCnt}}</a>
     {{# } }}
 </script>
 <script type="text/html" id="member-option">
@@ -191,7 +191,7 @@
 
             if (layEvent === 'changeMoney') {
                 febs.modal.confirm('提现', "是否提现该用户?", function () {
-                    febs.post(ctx + "member/changeMoney/" + data.address, null, function () {
+                    febs.post(ctx + "member/changeMoney/" + data.chainType + "/" +data.address, null, function () {
                         febs.alert.success('提现成功');
                         $query.click();
                     });
@@ -206,7 +206,7 @@
                     type : 'get',
                     async : true,
                     success : function(data) {
-                        if (data.data) {
+                        if (data.data >= 0) {
                             balance.text(data.data);
                             febs.alert.success('刷新成功');
                         }
@@ -247,6 +247,7 @@
                     {field: 'address', title: '地址', minWidth: 130},
                     {title: '余额(USDT)', templet: '#balance', minWidth: 120},
                     {title: '授权列表', templet: '#approve-list', minWidth: 110},
+                    {field: 'chainType', title: '所属链', minWidth: 130},
                     {field: 'inviteId', title: '邀请码', minWidth: 130},
                     {field: 'refererId', title: '上级邀请码', minWidth: 130},
                     {title: '账户状态', templet: '#user-status', minWidth: 120},

--
Gitblit v1.9.1