Commit a60910bf authored by zhangshuai's avatar zhangshuai

修改 潜在卡死逻辑

parent 8c521c20
......@@ -741,7 +741,7 @@ NSDictionary* appLaunchOpts;
[[CGUserManager shared] getServiceInfo:^{
NSString *status = [[CGUserManager shared].appSwitch[@"isopenH5"] stringValue];
NSLog(@"isopenH5 = %@", status);
if ([status isEqualToString:@"1"]) {
if (![status isEqualToString:@"1"]) {
Data * data = [[Data alloc] init];
if([[data Read] objectForKey:@"refresh_token"] == nil) {
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(launchAdSuccesShow) name:LaunchAdSuccesShow object:nil];
......
......@@ -12,6 +12,9 @@
#import "AddRuiShiADManager.h"
#import "AppDelegate.h"
#define TIMEOUT (30)
/// 广告工具类
@interface IOSADManager ()
@property (nonatomic ,retain)AddCSJADManager * csjAd;
......@@ -143,10 +146,17 @@ static IOSADManager * manager = nil;
}
}else{
static int timTouch = 0;
MBProgressHUD * hud = [MBProgressHUD showMessage:@"请稍等..."];
hud.minShowTime = 3;
timTouch += 1;
if (timTouch >= 2) {
timTouch = 0;
self.haveLodeAD = NO;
[self.videoModels removeObject:self.videoModels.firstObject];
[self.cachevideo removeAllObjects];
[self showADType:AdType resultBlock:self.adShowBlock];
}
self.showNow = YES;
if (!self.haveLodeAD) {
......@@ -631,11 +641,6 @@ static IOSADManager * manager = nil;
}
// dispatch_queue_t queueglobal = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW, 0);
//
// dispatch_async(queueglobal, ^{
//
// });
......@@ -754,8 +759,16 @@ static IOSADManager * manager = nil;
[self.bigImageModels removeObject:self.bigImageModels.firstObject];
}
}
// 广告超时
- (void)overtimeWith:(GYAdsTrackModel *)model{
}
@end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment