Quellcode durchsuchen

1.优化订单支付倒计时未结束就取消订单问题

王鹏鹏 vor 2 Jahren
Ursprung
Commit
528330ba73

+ 1 - 1
healthconsultation/src/main/java/com/yingyang/healthconsultation/dialog/PaymentQrCodeDialog.kt

@@ -141,7 +141,7 @@ class PaymentQrCodeDialog : DialogFragment() {
             time = 60 * 15 * 1 - it - 1
             val minutes = time / 60
             val seconds = time % 60
-            if (it == time - 1) {
+            if (it.toInt() == 0) {
                 rxTimer.cancel()
                 tvCountdown?.show(false)
                 delPayOrder()

+ 1 - 1
workbenches/src/main/java/com/yingyang/workbenches/dialog/PurchaseServicesDialog.kt

@@ -176,7 +176,7 @@ class PurchaseServicesDialog : DialogFragment() {
             time = 60 * 15 * 1 - it - 1
             val minutes = time / 60
             val seconds = time % 60
-            if (it == time - 1) {
+            if (time.toInt() == 0) {
                 rxTimer.cancel()
                 tvCountdown?.show(false)
                 if (mContext != null) {