|
|
@@ -96,8 +96,6 @@ class MemberController extends BaseController implements PaymentStatusCallback {
|
|
|
|
|
|
Duration? get activityDuration => memberRepository.activityDuration.value;
|
|
|
|
|
|
- bool _isShowPayFailedDialog = false; // 是否已经展示过支付失败弹窗
|
|
|
-
|
|
|
///检查续订的状态
|
|
|
final Rx<SubscriptionCheckResponse> _checkResponse =
|
|
|
Rx(SubscriptionCheckResponse(outTradeNo: ""));
|
|
|
@@ -321,16 +319,17 @@ class MemberController extends BaseController implements PaymentStatusCallback {
|
|
|
|
|
|
///用户取消支付展示
|
|
|
void userCancelsPaymentDisplay() {
|
|
|
- if (_isShowPayFailedDialog) {
|
|
|
- if (Platform.isAndroid) back();
|
|
|
- } else {
|
|
|
+ if (Platform.isAndroid) {
|
|
|
showRetainDialog(isBack: true);
|
|
|
+ } else {
|
|
|
+ Future.delayed(Duration(milliseconds: 500), () {
|
|
|
+ showRetainDialog(isBack: true);
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
|
|
|
///支付错误的时候调用
|
|
|
void showRetainDialog({bool isBack = false, int? errno}) {
|
|
|
- _isShowPayFailedDialog = true;
|
|
|
MemberRetainDialog.show(
|
|
|
payClick: () {
|
|
|
onBuyClick();
|