From 8dffff8492d854d98d8d00ecdf5b311ccfd72d67 Mon Sep 17 00:00:00 2001 From: liyuhua <15626451870@163.com> Date: Tue, 28 Nov 2023 11:48:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B4=B5=E6=97=8F=E9=A1=B5?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E5=85=85=E5=80=BC=E9=92=BB=E7=9F=B3bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Noble/View/XPNobleCenterViewController.m | 1 + .../Recharge/XPIAPRechargeViewController.m | 22 ++++++++++--------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/YuMi/Modules/YMMine/View/Noble/View/XPNobleCenterViewController.m b/YuMi/Modules/YMMine/View/Noble/View/XPNobleCenterViewController.m index bb599888..b4bbfc5a 100644 --- a/YuMi/Modules/YMMine/View/Noble/View/XPNobleCenterViewController.m +++ b/YuMi/Modules/YMMine/View/Noble/View/XPNobleCenterViewController.m @@ -201,6 +201,7 @@ [TTPopup alertWithConfig:config showBorder:NO confirmHandler:^{ XPIAPRechargeViewController * webVC =[[XPIAPRechargeViewController alloc] init]; + webVC.type = @"4"; [self.navigationController pushViewController:webVC animated:YES]; } cancelHandler:^{ diff --git a/YuMi/Modules/YMMine/View/Recharge/XPIAPRechargeViewController.m b/YuMi/Modules/YMMine/View/Recharge/XPIAPRechargeViewController.m index 18ad7779..8582fbc4 100644 --- a/YuMi/Modules/YMMine/View/Recharge/XPIAPRechargeViewController.m +++ b/YuMi/Modules/YMMine/View/Recharge/XPIAPRechargeViewController.m @@ -364,16 +364,18 @@ ///当前充值的状态 - (void)rechargeNewProcessStatus:(StoreConditionResult)status { - - if (status == StoreConditionResultPay || status == StoreConditionResultStart || status == StoreConditionResultVerifiedServer) { - - }else if (status == StoreConditionResultUnowned) { - [XNDJTDDLoadingTool hideHUDInView:kWindow]; - [self showErrorToast:YMLocalizedString(@"XPIAPRechargeViewController1")]; - }else{ - [XNDJTDDLoadingTool hideHUDInView:kWindow]; - [self showErrorToast:YMLocalizedString(@"XPIAPRechargeViewController0")]; - } + dispatch_async(dispatch_get_main_queue(), ^{ + if (status == StoreConditionResultPay || status == StoreConditionResultStart || status == StoreConditionResultVerifiedServer) { + + }else if (status == StoreConditionResultUnowned) { + [XNDJTDDLoadingTool hideHUDInView:kWindow]; + [self showErrorToast:YMLocalizedString(@"XPIAPRechargeViewController1")]; + }else{ + [XNDJTDDLoadingTool hideHUDInView:kWindow]; + [self showErrorToast:YMLocalizedString(@"XPIAPRechargeViewController0")]; + } + }); + } ///充值成功回调id