Parcourir la source

bind tinmer bugs

zz il y a 6 ans
Parent
commit
e841caae2e
1 fichiers modifiés avec 0 ajouts et 13 suppressions
  1. 0 13
      resources/views/pay/order/bindPhone.blade.php

+ 0 - 13
resources/views/pay/order/bindPhone.blade.php

@@ -261,19 +261,6 @@
     function countDown(time, cb) {
         var timer = null
         timer = setInterval(function() {
-            if(order){
-                $.ajax({
-                    url:"/api/order/issuccess",
-                    data:{
-                        order:"{{ $order }}"
-                    },
-                    success:function(res){
-                        if(res['code'] == 0){
-                            time = 1;
-                        }
-                    }
-                });
-            }
             if (time === 1) clearInterval(timer);
             time--;
             if (cb) cb(time);