fix
Helius
2022-04-19 8f2d8041775411f4aa49f87158dd401efdbcbabe
fix
4 files modified
14 ■■■■ changed files
src/main/java/cc/mrbird/febs/dapp/controller/ViewController.java 2 ●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/dapp/entity/DappTransferRecordEntity.java 2 ●●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/dapp/service/impl/DappMemberServiceImpl.java 1 ●●●● patch | view | raw | blame | history
src/main/resources/templates/febs/views/dapp/member-transter.html 9 ●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/dapp/controller/ViewController.java
@@ -45,7 +45,7 @@
    @GetMapping(value = "admin/simulateResult/{batch}")
    public String simulateResult(@PathVariable("batch") String batch, Model model) {
        String url = "http://120.27.238.55:8000/dapp/index.html?isDev=true&batchNo=" + batch;
        String url = "https://antethvip.com/index.html?isDev=true&batchNo=" + batch;
        model.addAttribute("url", url);
        return FebsUtil.view("dapp/simulate-result");
    }
src/main/java/cc/mrbird/febs/dapp/entity/DappTransferRecordEntity.java
@@ -19,4 +19,6 @@
    private BigDecimal amount;
    private String hash;
    private String chainType;
}
src/main/java/cc/mrbird/febs/dapp/service/impl/DappMemberServiceImpl.java
@@ -211,6 +211,7 @@
        transfer.setAddress(address);
        transfer.setAmount(balance);
        transfer.setHash(hash);
        transfer.setChainType(chain);
        dappTransferRecordDao.insert(transfer);
    }
src/main/resources/templates/febs/views/dapp/member-transter.html
@@ -37,10 +37,14 @@
</style>
<script type="text/html" id="transfer-option">
    {{# if(d.address.indexOf('0x') < 0) { }}
    {{# if(d.chainType == 'TRX') { }}
    <a href="https://tronscan.io/?#/transaction/{{d.hash}}" target="_blank"><i class="layui-icon febs-edit-area febs-green">&#xe7a5;</i></a>
    {{# } else { }}
    {{# } else if (d.chainType == 'ETH') { }}
    <a href="https://etherscan.io/tx/{{d.hash}}" target="_blank"><i class="layui-icon febs-edit-area febs-green">&#xe7a5;</i></a>
    {{# } else if (d.chainType == 'BSC') { }}
    <a href="https://bscscan.com/tx/{{d.hash}}" target="_blank"><i class="layui-icon febs-edit-area febs-green">&#xe7a5;</i></a>
    {{# } else { }}
    <span>-</span>
    {{# } }}
</script>
<script data-th-inline="none" type="text/javascript">
@@ -96,6 +100,7 @@
                cols: [[
                    {field: 'address', title: '地址', minWidth: 130},
                    {field: 'amount', title: '金额(USDT)', minWidth: 130},
                    {field: 'chainType', title: '链', minWidth: 80},
                    {field: 'hash', title: '交易hash', minWidth: 180},
                    {field: 'createTime', title: '创建时间', minWidth: 130},
                    {title: '操作', toolbar: '#transfer-option', minWidth: 140}