|
@@ -455,11 +455,6 @@ NSString *const new_AesKey_1 = @"mGlAgnIBB8bx2nch";
|
|
|
}];
|
|
|
});
|
|
|
}
|
|
|
-- (void)viewDidUnload {
|
|
|
- NSLog(@"viewDidUnload\nviewDidUnload\nviewDidUnload\nviewDidUnload\nviewDidUnload\nviewDidUnload\nviewDidUnload\nviewDidUnload\nviewDidUnload\nviewDidUnload\n");
|
|
|
- [super viewDidUnload];
|
|
|
- [[SKPaymentQueue defaultQueue] removeTransactionObserver:self];
|
|
|
-}
|
|
|
- (void)viewDidLoad {
|
|
|
[super viewDidLoad];
|
|
|
// Do any additional setup after loading the view.
|
|
@@ -1114,6 +1109,7 @@ NSString *const new_AesKey_1 = @"mGlAgnIBB8bx2nch";
|
|
|
[self requestProductData:productid];
|
|
|
}else{
|
|
|
NSLog(@"不允许程序内付费");
|
|
|
+ [[LXViewControllerManager shareViewControllerManager] hideHud];
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1138,6 +1134,7 @@ NSString *const new_AesKey_1 = @"mGlAgnIBB8bx2nch";
|
|
|
|
|
|
//监听购买结果
|
|
|
- (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions {
|
|
|
+// NSLog(@"收到支付回调");
|
|
|
for (SKPaymentTransaction *transaction in transactions) {
|
|
|
switch (transaction.transactionState) {
|
|
|
case SKPaymentTransactionStatePurchased://交易完成
|
|
@@ -1218,6 +1215,8 @@ NSString *const new_AesKey_1 = @"mGlAgnIBB8bx2nch";
|
|
|
-(void)judgeIsHiddenBottom {
|
|
|
if(self.tabBarController.selectedIndex == 0) {
|
|
|
NSString *current_url = [self stringByEvaluatingJavaScriptFromString:@"document.location.href"];
|
|
|
+ NSArray *array = [current_url componentsSeparatedByString:@"?"];
|
|
|
+ current_url = [NSString stringWithFormat:@"%@",array.firstObject];
|
|
|
if([current_url isEqualToString:[NSString stringWithFormat:@"%@jyapp/jylab/mainSearch",kHost]]){
|
|
|
[self showTabBar];
|
|
|
[self showMethodTabBar];
|