Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
L
LuckFarm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lmj
LuckFarm
Commits
898f66ad
Commit
898f66ad
authored
Nov 17, 2020
by
zhangshuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化 开屏广告速度
parent
ccd30775
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
13 deletions
+20
-13
AppDelegate.mm
GYDemo/GYDemo/AppDelegate.mm
+14
-13
GYPrefixHeader.pch
GYDemo/GYDemo/GYPrefixHeader.pch
+6
-0
No files found.
GYDemo/GYDemo/AppDelegate.mm
View file @
898f66ad
...
...
@@ -749,20 +749,21 @@ NSDictionary* appLaunchOpts;
[[[self ufw] appController].window makeKeyAndVisible];
[[CGUserManager shared] addLocCollection:@"tab_imp" value:@"1"];
if ([[data Read] objectForKey:@"isFirstInstall"]) {
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(launchAdSuccesShow) name:LaunchAdSuccesShow object:nil];
[[IOSADManager shareADManager] showADType:ADType_OpenScreen resultBlock:^(BOOL success) {
[[IOSADManager shareADManager] requestVideoAD];
}];
} else {
[data WirteDic: @"1" Key:@"isFirstInstall"];
[[IOSADManager shareADManager] requestVideoAD];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.25 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[self launchAdSuccesShow];
});
}
});
}];
}];
if ([[data Read] objectForKey:@"isFirstInstall"]) {
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(launchAdSuccesShow) name:LaunchAdSuccesShow object:nil];
[[IOSADManager shareADManager] showADType:ADType_OpenScreen resultBlock:^(BOOL success) {
[[IOSADManager shareADManager] requestVideoAD];
}];
} else {
[data WirteDic: @"1" Key:@"isFirstInstall"];
[[IOSADManager shareADManager] requestVideoAD];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.25 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[self launchAdSuccesShow];
});
}
return YES;
}
...
...
GYDemo/GYDemo/GYPrefixHeader.pch
View file @
898f66ad
...
...
@@ -14,8 +14,14 @@
#ifndef GYPrefixHeader_pch
#define GYPrefixHeader_pch
//测试
//#define ServerReport @"http://reporttest.zhangxinhulian.com"
//#define ServerHost @"https://feedapitest.zhangxinhulian.com" // 服务端接口地址
//#define ServerAds @"http://bstest.zhangxinhulian.com/v4/ads"
//正式
#define ServerReport @"http://report.clouddistribute.net"
#define ServerHost @"https://feedapi.clouddistribute.net" // 服务端接口地址
#define ServerAds @"http://bs.clouddistribute.net/v4/ads"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment