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