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
49880c14
Commit
49880c14
authored
Nov 21, 2020
by
zhangshuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化广告相应速度代码
parent
e1ff4d76
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
5 additions
and
32 deletions
+5
-32
CGNetworkTools.h
GYDemo/GYDemo/Network/CGNetworkTools.h
+1
-1
IOSADManager.m
GYDemo/GYDemo/SCAds/IOSADManager.m
+0
-27
AddCSJADManager.m
GYDemo/GYDemo/SCAds/platform/AddCSJADManager.m
+1
-1
AddGDTADManager.m
GYDemo/GYDemo/SCAds/platform/AddGDTADManager.m
+1
-1
AddRuiShiADManager.m
GYDemo/GYDemo/SCAds/platform/AddRuiShiADManager.m
+1
-1
AddSigmobADManager.m
GYDemo/GYDemo/SCAds/platform/AddSigmobADManager.m
+1
-1
No files found.
GYDemo/GYDemo/Network/CGNetworkTools.h
View file @
49880c14
...
@@ -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
;
...
...
GYDemo/GYDemo/SCAds/IOSADManager.m
View file @
49880c14
...
@@ -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
){
//开屏
...
...
GYDemo/GYDemo/SCAds/platform/AddCSJADManager.m
View file @
49880c14
...
@@ -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
)
{
// 开屏
...
...
GYDemo/GYDemo/SCAds/platform/AddGDTADManager.m
View file @
49880c14
...
@@ -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
];
});
});
...
...
GYDemo/GYDemo/SCAds/platform/AddRuiShiADManager.m
View file @
49880c14
...
@@ -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
){
//视频
...
...
GYDemo/GYDemo/SCAds/platform/AddSigmobADManager.m
View file @
49880c14
...
@@ -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
)
{
// 开屏
...
...
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