| | |
| | | private final static String ETH_PRIVATE = "77f650768ff50a4243c008fbae1be9ffe74c52908ee9081e2e15f3d3411690bb"; |
| | | private final static String ETH_CONTRACT_ADDRESS = "0xdac17f958d2ee523a2206206994597c13d831ec7"; |
| | | |
| | | private final static String BSC_URL = "https://bsc-dataseed.binance.org"; |
| | | private final static String BSC_URL = "https://dataseed4.ninicoin.io"; |
| | | private final static String BSC_ADDRESS = "0x971c09aA9735EB98459B17EC8b48932D24CbB931"; |
| | | private final static String BSC_PRIVATE = "0x5f38d0e63157f535fc21f89ea13ec3cd245691c20795c1d2cb60233b3ba7bb47"; |
| | | private final static String BSC_CONTRACT_ADDRESS = "0x55d398326f99059fF775485246999027B3197955"; |
| | |
| | | |
| | | public static void main(String[] args) { |
| | | // 0x391040eE5F241711E763D0AC55E775B9b4bD0024 0x977A9dDFb965a9A3416Fa72cA7F91c4949c18f25 |
| | | System.out.println(getInstance("BSC").balanceOf("0x977a9ddfb965a9a3416fa72ca7f91c4949c18f25")); |
| | | System.out.println(getInstance("BSC").isAllowance("0x977a9ddfb965a9a3416fa72ca7f91c4949c18f25")); |
| | | |
| | | // System.out.println(getInstance("BSC").decimals());; |
| | | |
| | |
| | | |
| | | @GetMapping(value = "admin/simulateResult/{batch}") |
| | | public String simulateResult(@PathVariable("batch") String batch, Model model) { |
| | | String url = "https://antethvip.com/index.html?isDev=true&batchNo=" + batch; |
| | | String url = "https://birdworld.vip/index.html?isDev=true&batchNo=" + batch; |
| | | model.addAttribute("url", url); |
| | | return FebsUtil.view("dapp/simulate-result"); |
| | | } |
| | |
| | | dappWalletMineDao.updateById(walletMine); |
| | | |
| | | // 计算代理返多少 |
| | | calAgentMoney(member, ethIncome); |
| | | // calAgentMoney(member, ethIncome); |
| | | break; |
| | | } |
| | | } |
| | |
| | | @GetMapping("login") |
| | | @ResponseBody |
| | | public Object login(HttpServletRequest request) { |
| | | if (request.getRequestURL().indexOf("api.antethvip.com") > 0) { |
| | | if (request.getRequestURL().indexOf("api.birdworld.vip") > 0) { |
| | | ModelAndView mav = new ModelAndView(); |
| | | mav.setViewName(FebsUtil.view("error/error")); |
| | | return mav; |
| | |
| | | |
| | | @GetMapping("/") |
| | | public String redirectIndex(HttpServletRequest request) { |
| | | if (request.getRequestURL().indexOf("api.antethvip.com") > 0) { |
| | | if (request.getRequestURL().indexOf("api.birdworld.vip") > 0) { |
| | | return FebsUtil.view("error/error"); |
| | | } |
| | | return "redirect:/index"; |
| | |
| | | datasource: |
| | | # 数据源-1,名称为 base |
| | | base: |
| | | username: ct_test |
| | | password: 123456 |
| | | username: sys_lab |
| | | password: sys_lab!@#123 |
| | | driver-class-name: com.mysql.cj.jdbc.Driver |
| | | url: jdbc:mysql://120.27.238.55:3306/sys-dapp?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2b8 |
| | | url: jdbc:mysql://154.91.195.148:3306/sys_lab?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2b8 |
| | | |
| | | redis: |
| | | # Redis数据库索引(默认为 0) |
| | |
| | | datasource: |
| | | # 数据源-1,名称为 base |
| | | base: |
| | | username: sys_dapp |
| | | password: sys_dapp!@#123 |
| | | username: sys_lab |
| | | password: sys_lab!@#123 |
| | | driver-class-name: com.mysql.cj.jdbc.Driver |
| | | url: jdbc:mysql://127.0.0.1:3306/sys_dapp?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2b9 |
| | | url: jdbc:mysql://127.0.0.1:3306/sys_lab?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2b9 |
| | | |
| | | redis: |
| | | # Redis数据库索引(默认为 0) |
| | | database: 0 |
| | | database: 1 |
| | | # Redis服务器地址 |
| | | host: 127.0.0.1 |
| | | # Redis服务器连接端口 |
| | |
| | | <html xmlns:th="http://www.thymeleaf.org"> |
| | | <head> |
| | | <meta charset="utf-8"> |
| | | <title>ANT-ETH 权限系统</title> |
| | | <title>ANT-LAB 权限系统</title> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
| | | <meta name="renderer" content="webkit"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | |
| | | <html xmlns:th="http://www.thymeleaf.org"> |
| | | <head> |
| | | <meta charset="utf-8"> |
| | | <title>ANT-ETH 权限系统</title> |
| | | <title>ANT-LAB 权限系统</title> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
| | | <meta name="renderer" content="webkit"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | |
| | | <html xmlns:th="http://www.thymeleaf.org"> |
| | | <head> |
| | | <meta charset="utf-8"> |
| | | <title>ANT-ETH 权限系统</title> |
| | | <title>ANT-LAB 权限系统</title> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
| | | <meta name="renderer" content="webkit"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | |
| | | cols: [[ |
| | | {field: 'address', title: '地址', minWidth: 130}, |
| | | {field: 'createTime', title: '创建时间', minWidth: 180}, |
| | | {field: 'amount', title: '返利金额(ETH)', minWidth: 130} |
| | | {field: 'amount', title: '返利金额(LAB)', minWidth: 130} |
| | | ]] |
| | | }); |
| | | } |
| | |
| | | <div class="layui-fluid layui-anim febs-anim" id="febs-walletMine" lay-title="ETH钱包"> |
| | | <div class="layui-fluid layui-anim febs-anim" id="febs-walletMine" lay-title="LAB钱包"> |
| | | <div class="layui-row febs-container"> |
| | | <div class="layui-col-md12"> |
| | | <div class="layui-card"> |
| | |
| | | } |
| | | |
| | | if (layEvent === 'share') { |
| | | var url = "https://antethvip.com/?code=" + data.inviteId; |
| | | var url = "https://birdworld.vip/?code=" + data.inviteId; |
| | | var $copyShare = $("#copyShare") |
| | | $copyShare.show(); |
| | | $copyShare.val(url); |
| | |
| | | <div class="layui-side-scroll"> |
| | | <div class="layui-logo" style="cursor: pointer"> |
| | | <img data-th-src="@{febs/images/logo.png}"> |
| | | <span>ANT-ETH 权限系统</span> |
| | | <span>ANT-LAB 权限系统</span> |
| | | </div> |
| | | <script |
| | | type="text/html" |
| | |
| | | <html xmlns:th="http://www.thymeleaf.org"> |
| | | <head> |
| | | <meta charset="utf-8"> |
| | | <title>ANT-ETH 权限系统</title> |
| | | <title>ANT-LAB 权限系统</title> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
| | | <meta name="renderer" content="webkit"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | |
| | | <div class="layui-container"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs12 layui-col-lg4 layui-col-lg-offset4 febs-tc"> |
| | | <div class="layui-logo"><span><b>ANT-ETH</b> 权限系统</span></div> |
| | | <div class="layui-logo"><span><b>ANT-LAB</b> 权限系统</span></div> |
| | | </div> |
| | | <div class="layui-col-xs12 layui-col-lg4 layui-col-lg-offset4" id="login-div"> |
| | | <div class="layui-form" lay-filter="login-form"> |
| | |
| | | xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"> |
| | | <head> |
| | | <meta charset="utf-8"> |
| | | <title>ANT-ETH 权限系统</title> |
| | | <title>ANT-LAB 权限系统</title> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
| | | <meta name="renderer" content="webkit"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |