d54f3680 by yyx

1

1 parent 240ef2b3
...@@ -62,9 +62,9 @@ const props = defineProps({ ...@@ -62,9 +62,9 @@ const props = defineProps({
62 62
63 let timer = null; 63 let timer = null;
64 const startCheckSuccessListener = (orderSn, actId) => { 64 const startCheckSuccessListener = (orderSn, actId) => {
65 console.log(123);
66 timer = setInterval(() => { 65 timer = setInterval(() => {
67 checkPaySuccess({ orderSn }).then((res) => { 66 checkPaySuccess({ orderSn })
67 .then((res) => {
68 if (res.data) { 68 if (res.data) {
69 clearInterval(timer); 69 clearInterval(timer);
70 timer = null; 70 timer = null;
...@@ -75,6 +75,10 @@ const startCheckSuccessListener = (orderSn, actId) => { ...@@ -75,6 +75,10 @@ const startCheckSuccessListener = (orderSn, actId) => {
75 } else { 75 } else {
76 return false; 76 return false;
77 } 77 }
78 })
79 .catch((e) => {
80 clearInterval(timer);
81 timer = null;
78 }); 82 });
79 }, 3000); 83 }, 3000);
80 }; 84 };
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!