1
Showing
1 changed file
with
6 additions
and
2 deletions
| ... | @@ -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 | }; | ... | ... |
-
Please register or sign in to post a comment