Commit 25c285fd authored by renjie's avatar renjie

支付宝接口

parent b28528b7
......@@ -9,16 +9,16 @@
</head>
<body>
<div id="test">
<div id="buy">
</div>
<script>
test();
function test(str = location.href.split('?')[1]){
buy();
function buy(str = location.href.split('?')[1]){
let token = decodeURIComponent(str).split("token_get_pay=")[1].split("&html_get_pay=")[0]
let html =decodeURIComponent(str).split("token_get_pay=")[1].split("&html_get_pay=")[1].split("&html_get_pay_money=")[0]
let total =decodeURIComponent(str).split("token_get_pay=")[1].split("&html_get_pay=")[1].split("&html_get_pay_money=")[1]
$("#test").append(html)
$("#buy").append(html)
}
function getUrlParams() {
const bundleUrl = location.href;
......
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