ソースを参照

FIx FPS cancel

CR013B1
Alex Cheung 2ヶ月前
コミット
065acd93f6
1個のファイルの変更13行の追加11行の削除
  1. +13
    -11
      src/pages/Payment/FPS/FPS.js

+ 13
- 11
src/pages/Payment/FPS/FPS.js ファイルの表示

@@ -286,7 +286,8 @@ const Index = () => {
}
},
onError: function(){
cancelPayment()
alert("ERROR")
// cancelPayment()
// clearInterval(currentTimer.current);
}
});
@@ -301,16 +302,17 @@ const Index = () => {
// console.log(timeOutDate)
// console.log(currentTime)
// console.log(timeOutDate.getTime()-currentTime.getTime())
getPaymentStatus();

if (timeOutDate.getTime()<currentTime.getTime()){
// console.log("stop");
clearInterval(currentTimer.current);
setqrCodeTimeout(true)
setTimeDownCount(0);
cancelPayment()
}else{
setTimeDownCount(timedowncount);
if (browserType === desktopBrowser){
getPaymentStatus();
if (timeOutDate.getTime()<currentTime.getTime()){
// console.log("stop");
clearInterval(currentTimer.current);
setqrCodeTimeout(true)
setTimeDownCount(0);
cancelPayment()
}else{
setTimeDownCount(timedowncount);
}
}
},[time])



読み込み中…
キャンセル
保存