Commit 49880c14 authored by zhangshuai's avatar zhangshuai

优化广告相应速度代码

parent e1ff4d76
...@@ -45,7 +45,7 @@ typedef enum : NSUInteger { ...@@ -45,7 +45,7 @@ typedef enum : NSUInteger {
task_process,// 获取福利中心进度 task_process,// 获取福利中心进度
taskListWithStat,//获取福利中心列表和状态 taskListWithStat,//获取福利中心列表和状态
rank_list, //排行榜 rank_list, //排行榜
ddcy_clock_list, //打卡提现-列表 ddcy_clock_list, //每日打卡-列表
} TQNetwortGetAction; } TQNetwortGetAction;
......
...@@ -434,33 +434,6 @@ static IOSADManager * manager = nil; ...@@ -434,33 +434,6 @@ static IOSADManager * manager = nil;
[weakSelf.ruishiAd showAdWithData:showData withADType:adType]; [weakSelf.ruishiAd showAdWithData:showData withADType:adType];
} }
// if ([showData.adPlatform isEqualToString:@"sigmob"]){
// dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
// if (weakSelf.videoModels.count <= 1) {
// [weakSelf requestVideoAD];
// }else{
// [weakSelf loadAdWithData:weakSelf.videoModels[1] withADType:ADType_Video];
// }
// });
//
// } else {
// if (weakSelf.videoModels.count <= 1) {
// [weakSelf requestVideoAD];
// }else{
// [weakSelf loadAdWithData:weakSelf.videoModels[1] withADType:ADType_Video];
// }
// }
// dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
// if (weakSelf.videoModels.count <= 1) {
// [weakSelf requestVideoAD];
// }else{
// [weakSelf loadAdWithData:weakSelf.videoModels[1] withADType:ADType_Video];
// }
// });
}else if (adType == ADType_BigImage){ //大图 }else if (adType == ADType_BigImage){ //大图
}else if (adType == ADType_OpenScreen){ //开屏 }else if (adType == ADType_OpenScreen){ //开屏
......
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
/// @param adType 广告类型 /// @param adType 广告类型
- (void)showAdWithData:(GYAdsTrackModel *)showData withADType:(eADType)adType;{ - (void)showAdWithData:(GYAdsTrackModel *)showData withADType:(eADType)adType;{
WEAKSELF WEAKSELF
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.25 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
if (adType == ADType_OpenScreen) { // 开屏 if (adType == ADType_OpenScreen) { // 开屏
......
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
self.loadSuccessCallbackBlock(self.currentData, YES); self.loadSuccessCallbackBlock(self.currentData, YES);
WEAKSELF; WEAKSELF;
if (splashAd.isAdValid) { if (splashAd.isAdValid) {
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[weakSelf.splashAd_GDT showAdInWindow:self.currentWindow withBottomView:nil skipView:nil]; [weakSelf.splashAd_GDT showAdInWindow:self.currentWindow withBottomView:nil skipView:nil];
}); });
......
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
/// @param adType 广告类型 /// @param adType 广告类型
- (void)showAdWithData:(GYAdsTrackModel *)showData withADType:(eADType)adType;{ - (void)showAdWithData:(GYAdsTrackModel *)showData withADType:(eADType)adType;{
WEAKSELF WEAKSELF
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.25 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
if (adType == ADType_OpenScreen) { // 开屏 if (adType == ADType_OpenScreen) { // 开屏
}else if (adType == ADType_Video){ //视频 }else if (adType == ADType_Video){ //视频
......
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
- (void)showAdWithData:(GYAdsTrackModel *)showData withADType:(eADType)adType;{ - (void)showAdWithData:(GYAdsTrackModel *)showData withADType:(eADType)adType;{
WEAKSELF WEAKSELF
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.25 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
NSString * ADID = showData.codeId; NSString * ADID = showData.codeId;
if (adType == ADType_OpenScreen) { // 开屏 if (adType == ADType_OpenScreen) { // 开屏
......
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