goldzhang814 1 год назад
Родитель
Сommit
d41092b5db
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      app/index/view/user/orderDetails.html

+ 2 - 2
app/index/view/user/orderDetails.html

@@ -547,7 +547,7 @@
             if (status === 200 || status === "200") {
             if (status === 200 || status === "200") {
                 window.open(data.payment.approval_link, "_blank");
                 window.open(data.payment.approval_link, "_blank");
                 var interId = setInterval(function () {
                 var interId = setInterval(function () {
-                    fetchOrder(data.orderId, interId);
+                    fetchOrder(interId);
                 }, 2000)
                 }, 2000)
             } else if (status === 401 || status === "401") {
             } else if (status === 401 || status === "401") {
                 window.location.replace('../passport/logIn.html')
                 window.location.replace('../passport/logIn.html')
@@ -556,7 +556,7 @@
             }
             }
         });
         });
 
 
-        function fetchOrder(orderId, interId) {
+        function fetchOrder(interId) {
             $.get('/index/order/detail?orderId=' + orderId, function (res) {
             $.get('/index/order/detail?orderId=' + orderId, function (res) {
                 console.log(res.data.order.pay_status);
                 console.log(res.data.order.pay_status);
                 if (res.status == 200 && res.data.order.pay_status == 20) {
                 if (res.status == 200 && res.data.order.pay_status == 20) {