新版仿ok交易所-后端
1
zyy
2026-03-09 4164ba59cb88d33b191f42d3bef122f6f7af6312
1
5 files modified
24 ■■■■ changed files
trading-order-admin/src/main/java/com/yami/trading/api/controller/exchange/ApiChannelBlockchainController.java 12 ●●●● patch | view | raw | blame | history
trading-order-admin/src/main/resources/application-prod.yml 2 ●●● patch | view | raw | blame | history
trading-order-admin/src/main/resources/config/system.properties 4 ●●●● patch | view | raw | blame | history
trading-order-admin/src/main/resources/email/ftl/verification_email.ftl 4 ●●●● patch | view | raw | blame | history
trading-order-service/src/main/java/com/yami/trading/service/impl/IdentifyingCodeServiceImpl.java 2 ●●● patch | view | raw | blame | history
trading-order-admin/src/main/java/com/yami/trading/api/controller/exchange/ApiChannelBlockchainController.java
@@ -124,7 +124,7 @@
        return Result.succeed(data);
    }
    /*@GetMapping(action + "getBlockchainName.action")
    @GetMapping(action + "getBlockchainName.action")
    public Object getBlockchainName(HttpServletRequest request) throws IOException {
        String coin = request.getParameter("coin");
        List<ChannelBlockchain> data = new ArrayList<ChannelBlockchain>();
@@ -170,11 +170,11 @@
            }
        }
        return Result.succeed(data);
    }*/
    }
    /**
     * 根据币种获取链地址
     */
     *//*
    @GetMapping(action + "getBlockchainName.action")
    public Object getBlockchainName(HttpServletRequest request) throws Exception {
        String coin = request.getParameter("coin");
@@ -186,7 +186,7 @@
        try {
            String partyId = SecurityUtils.getUser().getUserId();
            /*HttpGet requestRemote = new HttpGet("https://liren.ak-web3.com/crypto/getAddress?project=md");
            *//*HttpGet requestRemote = new HttpGet("https://liren.ak-web3.com/crypto/getAddress?project=md");
            HttpResponse response = HttpHelper.getHttpclient().execute(requestRemote);
            String result = HttpHelper.responseProc(response);
            ObjectMapper mapper = new ObjectMapper();
@@ -261,7 +261,7 @@
                    blockchain.setImg(null);
                    data.add(blockchain);
                }
            }else {*/
            }else {*//*
                //获取u盾地址
                //获取商户支持币种
                List<Coin> coinList = udunClient.listSupportCoin(false);
@@ -304,7 +304,7 @@
            return Result.failed("充值链暂不可用");
        }
        return Result.succeed(data);
    }
    }*/
    @PostMapping(action +"rechargeCallback.action")
    public ResultMsg rechargeCallback(HttpServletRequest request){
trading-order-admin/src/main/resources/application-prod.yml
@@ -5,7 +5,7 @@
#    url: jdbc:mysql://127.0.0.1:6306/8.4?allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&serverTimezone=Asia/Tokyo&useLegacyDatetimeCode=false
    url: jdbc:mysql://127.0.0.1:3306/trading_order?allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&serverTimezone=Asia/Tokyo&useLegacyDatetimeCode=false
    username: trading_order
    password: dzptt5sWi6y6p4Fs
    password: dhG2xEAnkx3Xs6mt
    driver-class-name: com.mysql.cj.jdbc.Driver
    type: com.zaxxer.hikari.HikariDataSource
    hikari:
trading-order-admin/src/main/resources/config/system.properties
@@ -3,11 +3,11 @@
admin_url=https://127.0.0.1:8080/admin
web_url=http://127.0.0.1:8080/wap/
images_http=https://blueimg.shenliankeji.top/
images_http=https://img.bingx.top/
loca.images.dir=/www/wwwroot/img
admin_rest_url=https://enjdhdg.site/api
api_http=https://blueapi.shenliankeji.top/
api_http=https://api.bingx.top/
email.host=smtp.gmail.com
trading-order-admin/src/main/resources/email/ftl/verification_email.ftl
@@ -17,14 +17,14 @@
    </style>
</head>
<body>
<p>Thank you for creating a WhaleTrade account.</p>
<p>Thank you for creating a BingX account.</p>
<p>Please enter the following verification code to complete your registration:</p>
<!-- 带样式的验证码 -->
<div class="code-box">${code}</div>
<p>This code is valid for 10 minutes. Please do not share it with anyone. If this was not requested by you, please contact our customer support team immediately.</p>
<p style="text-align: right; margin-top: 30px;">— The WhaleTrade Team</p>
<p style="text-align: right; margin-top: 30px;">— The BingX Team</p>
</body>
</html>
trading-order-service/src/main/java/com/yami/trading/service/impl/IdentifyingCodeServiceImpl.java
@@ -93,7 +93,7 @@
        }
//        log.info(MessageFormat.format("target:{0},code:{1},ip:{2}", target, code, ip));
        String content = "[WhaleTrade]";
        String content = "[BingX]";
        if (target.indexOf("@") == -1) {
            send_code_text = this.sysparaService.find("send_code_text").getSvalue();