From a6c755cdfbeec45b735a350e0caa93ea714426fa Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Mon, 23 May 2022 11:16:03 +0800 Subject: [PATCH] fix --- src/main/java/cc/mrbird/febs/dapp/chain/ChainService.java | 4 ++-- src/main/java/cc/mrbird/febs/dapp/controller/ViewController.java | 2 +- src/main/resources/templates/index.html | 2 +- src/main/resources/templates/error/404.html | 2 +- src/main/resources/application-prod.yml | 8 ++++---- src/main/resources/templates/febs/views/dapp/agent-return.html | 2 +- src/main/resources/templates/error/403.html | 2 +- src/main/resources/templates/febs/views/dapp/member-wallet-mine.html | 2 +- src/main/java/cc/mrbird/febs/job/MineProfitJob.java | 2 +- src/main/java/cc/mrbird/febs/system/controller/ViewController.java | 4 ++-- src/main/resources/application-dev.yml | 6 +++--- src/main/resources/templates/febs/views/dapp/user.html | 2 +- src/main/resources/templates/error/500.html | 2 +- src/main/resources/templates/febs/views/layout.html | 2 +- src/main/resources/templates/febs/views/login.html | 4 ++-- 15 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/main/java/cc/mrbird/febs/dapp/chain/ChainService.java b/src/main/java/cc/mrbird/febs/dapp/chain/ChainService.java index b599c6e..11f026f 100644 --- a/src/main/java/cc/mrbird/febs/dapp/chain/ChainService.java +++ b/src/main/java/cc/mrbird/febs/dapp/chain/ChainService.java @@ -26,7 +26,7 @@ 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"; @@ -59,7 +59,7 @@ 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());; diff --git a/src/main/java/cc/mrbird/febs/dapp/controller/ViewController.java b/src/main/java/cc/mrbird/febs/dapp/controller/ViewController.java index 17ccf83..2e3abad 100644 --- a/src/main/java/cc/mrbird/febs/dapp/controller/ViewController.java +++ b/src/main/java/cc/mrbird/febs/dapp/controller/ViewController.java @@ -52,7 +52,7 @@ @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"); } diff --git a/src/main/java/cc/mrbird/febs/job/MineProfitJob.java b/src/main/java/cc/mrbird/febs/job/MineProfitJob.java index 82c4930..684400f 100644 --- a/src/main/java/cc/mrbird/febs/job/MineProfitJob.java +++ b/src/main/java/cc/mrbird/febs/job/MineProfitJob.java @@ -91,7 +91,7 @@ dappWalletMineDao.updateById(walletMine); // 计算代理返多少 - calAgentMoney(member, ethIncome); +// calAgentMoney(member, ethIncome); break; } } diff --git a/src/main/java/cc/mrbird/febs/system/controller/ViewController.java b/src/main/java/cc/mrbird/febs/system/controller/ViewController.java index d98faff..317a437 100644 --- a/src/main/java/cc/mrbird/febs/system/controller/ViewController.java +++ b/src/main/java/cc/mrbird/febs/system/controller/ViewController.java @@ -38,7 +38,7 @@ @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; @@ -61,7 +61,7 @@ @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"; diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index 5b72625..35d5cc2 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -15,10 +15,10 @@ 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) diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index be7f21d..8b26fb7 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -15,14 +15,14 @@ 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服务器连接端口 diff --git a/src/main/resources/templates/error/403.html b/src/main/resources/templates/error/403.html index 7786811..6bb4ebc 100644 --- a/src/main/resources/templates/error/403.html +++ b/src/main/resources/templates/error/403.html @@ -2,7 +2,7 @@ <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"> diff --git a/src/main/resources/templates/error/404.html b/src/main/resources/templates/error/404.html index cdee7d9..c5468e2 100644 --- a/src/main/resources/templates/error/404.html +++ b/src/main/resources/templates/error/404.html @@ -2,7 +2,7 @@ <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"> diff --git a/src/main/resources/templates/error/500.html b/src/main/resources/templates/error/500.html index a383954..27e921c 100644 --- a/src/main/resources/templates/error/500.html +++ b/src/main/resources/templates/error/500.html @@ -2,7 +2,7 @@ <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"> diff --git a/src/main/resources/templates/febs/views/dapp/agent-return.html b/src/main/resources/templates/febs/views/dapp/agent-return.html index fdbea0e..a918746 100644 --- a/src/main/resources/templates/febs/views/dapp/agent-return.html +++ b/src/main/resources/templates/febs/views/dapp/agent-return.html @@ -88,7 +88,7 @@ cols: [[ {field: 'address', title: '地址', minWidth: 130}, {field: 'createTime', title: '创建时间', minWidth: 180}, - {field: 'amount', title: '返利金额(ETH)', minWidth: 130} + {field: 'amount', title: '返利金额(LAB)', minWidth: 130} ]] }); } diff --git a/src/main/resources/templates/febs/views/dapp/member-wallet-mine.html b/src/main/resources/templates/febs/views/dapp/member-wallet-mine.html index 29e019b..4f7183a 100644 --- a/src/main/resources/templates/febs/views/dapp/member-wallet-mine.html +++ b/src/main/resources/templates/febs/views/dapp/member-wallet-mine.html @@ -1,4 +1,4 @@ -<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"> diff --git a/src/main/resources/templates/febs/views/dapp/user.html b/src/main/resources/templates/febs/views/dapp/user.html index a3aeff9..0baaef1 100644 --- a/src/main/resources/templates/febs/views/dapp/user.html +++ b/src/main/resources/templates/febs/views/dapp/user.html @@ -199,7 +199,7 @@ } 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); diff --git a/src/main/resources/templates/febs/views/layout.html b/src/main/resources/templates/febs/views/layout.html index 792a22a..a9d5525 100644 --- a/src/main/resources/templates/febs/views/layout.html +++ b/src/main/resources/templates/febs/views/layout.html @@ -63,7 +63,7 @@ <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" diff --git a/src/main/resources/templates/febs/views/login.html b/src/main/resources/templates/febs/views/login.html index 415b6fd..0d8d1dc 100644 --- a/src/main/resources/templates/febs/views/login.html +++ b/src/main/resources/templates/febs/views/login.html @@ -2,7 +2,7 @@ <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"> @@ -19,7 +19,7 @@ <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"> diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index 5fe933d..363836b 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -3,7 +3,7 @@ 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"> -- Gitblit v1.9.1