goldzhang814 1 سال پیش
والد
کامیت
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") {
                 window.open(data.payment.approval_link, "_blank");
                 var interId = setInterval(function () {
-                    fetchOrder(data.orderId, interId);
+                    fetchOrder(interId);
                 }, 2000)
             } else if (status === 401 || status === "401") {
                 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) {
                 console.log(res.data.order.pay_status);
                 if (res.status == 200 && res.data.order.pay_status == 20) {