This commit is contained in:
admin
2023-09-11 17:32:57 +08:00
parent 64e3cf0253
commit c7bb6c85e7
9 changed files with 217 additions and 17 deletions

View File

@@ -38,7 +38,7 @@
return;
}
let response = await fetch('./pay/createOrder?n=' + n + '&t=test');
let response = await fetch('./createOrder?n=' + n + '&t=test');
let res = JSON.parse(await response.text());
if (res.code == 1) {
@@ -64,7 +64,7 @@
*轮询检查支付状态
*/
async function subscribe(id) {
let response = await fetch("./pay/queryPay?id=" + id);
let response = await fetch("./queryPay?id=" + id);
if (response.status == 502) {
// 连接超时,重新连接
@@ -93,7 +93,7 @@
* 手动查询支付状态
*/
async function selectPay(id) {
let response = await fetch('./pay/queryPay?id=' + id);
let response = await fetch('./queryPay?id=' + id);
let res = JSON.parse(await response.text());
if (response.status == 200 && res.msg == "已支付") {