Commit aa3faa16 authored by Administrator's avatar Administrator

创建项目

parent 2dd1e9fc
...@@ -50,6 +50,11 @@ public class PayTestController extends BusinessController { ...@@ -50,6 +50,11 @@ public class PayTestController extends BusinessController {
return "pay/h5"; return "pay/h5";
} }
@RequestMapping("ipv4")
public String ipv4(HttpServletRequest request) {
return "var CLIENT_IP=\"" + getClientAddress(request) + "\"";
}
@RequestMapping("checkPay") @RequestMapping("checkPay")
public String checkPay(CheckPayRequestData data, Model model, HttpServletRequest servletRequest) throws Exception { public String checkPay(CheckPayRequestData data, Model model, HttpServletRequest servletRequest) throws Exception {
String res = ""; String res = "";
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script> <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery.serializeJSON/3.2.1/jquery.serializejson.min.js"></script> <script src="https://cdn.bootcdn.net/ajax/libs/jquery.serializeJSON/3.2.1/jquery.serializejson.min.js"></script>
<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script> <script src="https://baa-pay-server-pay.liangkebang.net/pay/ipv4"></script>
<!-- <meta http-equiv="refresh" content="url=[[${payUrl}]]">--> <!-- <meta http-equiv="refresh" content="url=[[${payUrl}]]">-->
<style> <style>
* { * {
...@@ -271,7 +271,7 @@ ...@@ -271,7 +271,7 @@
document.getElementById("subject").value = "测试"; document.getElementById("subject").value = "测试";
document.getElementById("amount").value = "0.01"; document.getElementById("amount").value = "0.01";
document.getElementById("body").value = "购买测试商品0.01元"; document.getElementById("body").value = "购买测试商品0.01元";
document.getElementById("requestIp").value = returnCitySN["cip"]; document.getElementById("requestIp").value = CLIENT_IP;
} }
GetDateNow(); GetDateNow();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment