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
e3e6e25f
Commit
e3e6e25f
authored
Nov 12, 2020
by
zhangshuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug 优化缓存
parent
292e859f
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
38 additions
and
12 deletions
+38
-12
GYTaskAlertView.m
GYDemo/GYDemo/Alert/GYTaskAlertView.m
+2
-0
AppDelegate.mm
GYDemo/GYDemo/AppDelegate.mm
+6
-5
IOSADManager.m
GYDemo/GYDemo/SCAds/IOSADManager.m
+8
-5
GYAdsTrackModel.h
GYDemo/GYDemo/SCAds/model/GYAdsTrackModel.h
+1
-0
AddCSJADManager.m
GYDemo/GYDemo/SCAds/platform/AddCSJADManager.m
+8
-1
AddGDTADManager.m
GYDemo/GYDemo/SCAds/platform/AddGDTADManager.m
+4
-1
AddRuiShiADManager.m
GYDemo/GYDemo/SCAds/platform/AddRuiShiADManager.m
+5
-0
AddSigmobADManager.m
GYDemo/GYDemo/SCAds/platform/AddSigmobADManager.m
+2
-0
GYWheelSurfViewController.m
GYDemo/GYDemo/ViewController/GYWheelSurfViewController.m
+2
-0
No files found.
GYDemo/GYDemo/Alert/GYTaskAlertView.m
View file @
e3e6e25f
...
@@ -118,7 +118,9 @@
...
@@ -118,7 +118,9 @@
break
;
break
;
case
4
:
case
4
:
NSLog
(
@"激励视频"
);
NSLog
(
@"激励视频"
);
[
IOSADManager
shareADManager
].
advertisingSpace
=
@"play_adVideo_end_receive_coinTask"
;
[[
IOSADManager
shareADManager
]
showADType
:
ADType_Video
resultBlock
:
^
(
BOOL
success
)
{
[[
IOSADManager
shareADManager
]
showADType
:
ADType_Video
resultBlock
:
^
(
BOOL
success
)
{
if
(
success
)
{
if
(
success
)
{
}
else
{
}
else
{
...
...
GYDemo/GYDemo/AppDelegate.mm
View file @
e3e6e25f
...
@@ -263,8 +263,6 @@ NSDictionary* appLaunchOpts;
...
@@ -263,8 +263,6 @@ NSDictionary* appLaunchOpts;
// 打开飞的宝箱
// 打开飞的宝箱
- (void)ios_openFlyBox {
- (void)ios_openFlyBox {
self.showVideo = YES;
self.showVideo = YES;
[[CGUserManager shared] addLocCollection:@"show_flyBox_dialog" value:@""];
[[CGUserManager shared] addLocCollection:@"show_flyBox_dialog" value:@""];
...
@@ -275,7 +273,7 @@ NSDictionary* appLaunchOpts;
...
@@ -275,7 +273,7 @@ NSDictionary* appLaunchOpts;
[[CGUserManager shared] addLocCollection:@"click_flyBox_video_btn" value:@""];
[[CGUserManager shared] addLocCollection:@"click_flyBox_video_btn" value:@""];
[[CGUserManager shared] addLocCollection:@"play_adVideo_end_fly_box" value:@""];
[[CGUserManager shared] addLocCollection:@"play_adVideo_end_fly_box" value:@""];
[IOSADManager shareADManager].advertisingSpace = @"play_adVideo_end_fly_box";
[[IOSADManager shareADManager] showADType:ADType_Video resultBlock:^(BOOL success) {
[[IOSADManager shareADManager] showADType:ADType_Video resultBlock:^(BOOL success) {
if (success) {
if (success) {
...
@@ -343,6 +341,7 @@ NSDictionary* appLaunchOpts;
...
@@ -343,6 +341,7 @@ NSDictionary* appLaunchOpts;
- (void)ios_getCloudSpeed {
- (void)ios_getCloudSpeed {
[[CGUserManager shared] addLocCollection:@"click_cloud_speed_up_video_btn" value:@""];
[[CGUserManager shared] addLocCollection:@"click_cloud_speed_up_video_btn" value:@""];
[IOSADManager shareADManager].advertisingSpace = @"play_adVideo_end_cloud_speed_up";
[[IOSADManager shareADManager] showADType:ADType_Video resultBlock:^(BOOL success) {
[[IOSADManager shareADManager] showADType:ADType_Video resultBlock:^(BOOL success) {
if (success) {
if (success) {
...
@@ -484,6 +483,7 @@ NSDictionary* appLaunchOpts;
...
@@ -484,6 +483,7 @@ NSDictionary* appLaunchOpts;
// 看视频领取种子
// 看视频领取种子
- (void)ios_getVideoSeedReceive: (int) seedId {
- (void)ios_getVideoSeedReceive: (int) seedId {
[[CGUserManager shared] addLocCollection:@"click_Insufficient_seeds_video_btn" value:@""];
[[CGUserManager shared] addLocCollection:@"click_Insufficient_seeds_video_btn" value:@""];
[IOSADManager shareADManager].advertisingSpace = @"play_adVideo_end_free_get_seed";
[[IOSADManager shareADManager] showADType:ADType_Video resultBlock:^(BOOL success) {
[[IOSADManager shareADManager] showADType:ADType_Video resultBlock:^(BOOL success) {
if (success) {
if (success) {
...
@@ -509,7 +509,8 @@ NSDictionary* appLaunchOpts;
...
@@ -509,7 +509,8 @@ NSDictionary* appLaunchOpts;
// 看视频领取加速剂
// 看视频领取加速剂
- (void)ios_getVideoAcceleratorsReceive: (int)receive {
- (void)ios_getVideoAcceleratorsReceive: (int)receive {
[[CGUserManager shared] addLocCollection:@"click_free_get_accelerometer_video_btn" value:@""];
[[CGUserManager shared] addLocCollection:@"click_free_get_accelerometer_video_btn" value:@""];
[IOSADManager shareADManager].advertisingSpace = @"play_adVideo_end_free_get_accelerometer";
[[IOSADManager shareADManager] showADType:ADType_Video resultBlock:^(BOOL success) {
[[IOSADManager shareADManager] showADType:ADType_Video resultBlock:^(BOOL success) {
if (success) {
if (success) {
...
@@ -710,7 +711,7 @@ NSDictionary* appLaunchOpts;
...
@@ -710,7 +711,7 @@ NSDictionary* appLaunchOpts;
NSString *status = [[CGUserManager shared].appSwitch[@"isopenH5"] stringValue];
NSString *status = [[CGUserManager shared].appSwitch[@"isopenH5"] stringValue];
NSLog(@"isopenH5 = %@", status);
NSLog(@"isopenH5 = %@", status);
if ([status isEqualToString:@"1"]) {
if (
!
[status isEqualToString:@"1"]) {
Data * data = [[Data alloc] init];
Data * data = [[Data alloc] init];
if([[data Read] objectForKey:@"refresh_token"] == nil) {
if([[data Read] objectForKey:@"refresh_token"] == nil) {
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(launchAdSuccesShow) name:LaunchAdSuccesShow object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(launchAdSuccesShow) name:LaunchAdSuccesShow object:nil];
...
...
GYDemo/GYDemo/SCAds/IOSADManager.m
View file @
e3e6e25f
...
@@ -202,7 +202,7 @@ static IOSADManager * manager = nil;
...
@@ -202,7 +202,7 @@ static IOSADManager * manager = nil;
// 什么都不做或者 直接加载
// 什么都不做或者 直接加载
}
else
{
}
else
{
NSInteger
time
=
0
.
1
;
NSInteger
time
=
0
.
1
;
if
(
self
.
csjAd
==
nil
)
{
if
(
self
.
csjAd
==
nil
||
self
.
loadADDataArray
.
count
>
1
)
{
time
=
0
.
1
;
time
=
0
.
1
;
}
else
{
}
else
{
time
=
5
;
time
=
5
;
...
@@ -363,7 +363,7 @@ static IOSADManager * manager = nil;
...
@@ -363,7 +363,7 @@ static IOSADManager * manager = nil;
}
else
if
([
showData
.
adPlatform
isEqualToString
:
@"ruishi"
]){
}
else
if
([
showData
.
adPlatform
isEqualToString
:
@"ruishi"
]){
[
self
.
ruishiAd
showAdWithData
:
showData
withADType
:
adType
];
[
self
.
ruishiAd
showAdWithData
:
showData
withADType
:
adType
];
}
}
if
(
self
.
videoModels
.
count
=
=
1
)
{
if
(
self
.
videoModels
.
count
<
=
1
)
{
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
1
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
1
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
[
weakSelf
requestVideoAD
];
[
weakSelf
requestVideoAD
];
});
});
...
@@ -495,7 +495,7 @@ static IOSADManager * manager = nil;
...
@@ -495,7 +495,7 @@ static IOSADManager * manager = nil;
[
weakSelf
.
videoModels
addObjectsFromArray
:
models
];
[
weakSelf
.
videoModels
addObjectsFromArray
:
models
];
//有缓存
//有缓存
if
(
weakSelf
.
cachevideo
.
count
==
0
&&
weakSelf
.
videoModels
>
0
)
{
if
(
weakSelf
.
cachevideo
.
count
==
0
&&
weakSelf
.
videoModels
.
count
==
1
)
{
[
weakSelf
loadAdWithData
:
weakSelf
.
videoModels
.
firstObject
withADType
:
ADType_Video
];
[
weakSelf
loadAdWithData
:
weakSelf
.
videoModels
.
firstObject
withADType
:
ADType_Video
];
}
else
{
}
else
{
if
(
weakSelf
.
videoModels
.
count
>=
2
)
{
if
(
weakSelf
.
videoModels
.
count
>=
2
)
{
...
@@ -508,14 +508,14 @@ static IOSADManager * manager = nil;
...
@@ -508,14 +508,14 @@ static IOSADManager * manager = nil;
}
else
{
}
else
{
[[
CGUserManager
shared
]
addLocCollection
:
@"reward_request"
value
:
@"reward_request_failed"
];
[[
CGUserManager
shared
]
addLocCollection
:
@"reward_request"
value
:
@"reward_request_failed"
];
}
}
[
MBProgressHUD
hideHUD
];
}
failure
:^
(
NSError
*
_Nonnull
error
)
{
}
failure
:^
(
NSError
*
_Nonnull
error
)
{
requestToTry
+=
1
;
requestToTry
+=
1
;
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
2
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
2
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
[
weakSelf
requestVideoAD
];
[
weakSelf
requestVideoAD
];
});
});
[[
CGUserManager
shared
]
addLocCollection
:
@"reward_request"
value
:
@"reward_request_failed"
];
[[
CGUserManager
shared
]
addLocCollection
:
@"reward_request"
value
:
@"reward_request_failed"
];
[
MBProgressHUD
hideHUD
];
}];
}];
...
@@ -537,6 +537,7 @@ static IOSADManager * manager = nil;
...
@@ -537,6 +537,7 @@ static IOSADManager * manager = nil;
weakSelf
.
haveLodeAD
=
NO
;
weakSelf
.
haveLodeAD
=
NO
;
[
MBProgressHUD
hideHUD
];
[
MBProgressHUD
hideHUD
];
if
(
success
)
{
if
(
success
)
{
[[
CGUserManager
shared
]
addLocCollection
:
@"reward_request"
value
:
@"reward_back_success"
];
[[
CGUserManager
shared
]
addLocCollection
:
@"reward_request"
value
:
@"reward_back_success"
];
[
weakSelf
.
cachevideo
addObject
:
model
];
[
weakSelf
.
cachevideo
addObject
:
model
];
if
(
weakSelf
.
showNow
){
if
(
weakSelf
.
showNow
){
...
@@ -544,6 +545,7 @@ static IOSADManager * manager = nil;
...
@@ -544,6 +545,7 @@ static IOSADManager * manager = nil;
}
}
}
else
{
}
else
{
[[
CGUserManager
shared
]
addLocCollection
:
@"reward_request"
value
:
@"reward_back_failed"
];
[[
CGUserManager
shared
]
addLocCollection
:
@"reward_request"
value
:
@"reward_back_failed"
];
[
weakSelf
clearCache
:
model
];
[
weakSelf
clearCache
:
model
];
}
}
...
@@ -600,6 +602,7 @@ static IOSADManager * manager = nil;
...
@@ -600,6 +602,7 @@ static IOSADManager * manager = nil;
}];
}];
}
else
{
}
else
{
[[
CGUserManager
shared
]
addLocCollection
:
@"reward_request"
value
:
@"reward_display_failed"
];
[[
CGUserManager
shared
]
addLocCollection
:
@"reward_request"
value
:
@"reward_display_failed"
];
if
(
self
.
advertisingSpace
)
{
if
(
self
.
advertisingSpace
)
{
...
...
GYDemo/GYDemo/SCAds/model/GYAdsTrackModel.h
View file @
e3e6e25f
...
@@ -43,6 +43,7 @@ NS_ASSUME_NONNULL_BEGIN
...
@@ -43,6 +43,7 @@ NS_ASSUME_NONNULL_BEGIN
//逻辑字段
//逻辑字段
@property
(
nonatomic
,
assign
)
BOOL
firstFailure
;
// 第一个失败
@property
(
nonatomic
,
assign
)
BOOL
firstFailure
;
// 第一个失败
@property
(
nonatomic
,
assign
)
eADType
loadADType
;
//这个广告所属的广告类型
@property
(
nonatomic
,
assign
)
eADType
loadADType
;
//这个广告所属的广告类型
@property
(
nonatomic
,
retain
)
NSError
*
ADError
;
//广告错误回调
+
(
instancetype
)
modelWithDic
:(
NSDictionary
*
)
dict
;
+
(
instancetype
)
modelWithDic
:(
NSDictionary
*
)
dict
;
...
...
GYDemo/GYDemo/SCAds/platform/AddCSJADManager.m
View file @
e3e6e25f
...
@@ -110,6 +110,7 @@
...
@@ -110,6 +110,7 @@
*/
*/
-
(
void
)
splashAd
:
(
BUSplashAdView
*
)
splashAd
didFailWithError
:
(
NSError
*
_Nullable
)
error
;{
-
(
void
)
splashAd
:
(
BUSplashAdView
*
)
splashAd
didFailWithError
:
(
NSError
*
_Nullable
)
error
;{
self
.
loadSuccessCallbackBlock
(
self
.
currentData
,
NO
);
self
.
loadSuccessCallbackBlock
(
self
.
currentData
,
NO
);
self
.
currentData
.
ADError
=
error
;
}
}
...
@@ -210,6 +211,8 @@
...
@@ -210,6 +211,8 @@
self
.
loadSuccessCallbackBlock
(
self
.
currentData
,
NO
);
self
.
loadSuccessCallbackBlock
(
self
.
currentData
,
NO
);
self
.
splashAd_CSJ
.
hidden
=
YES
;
self
.
splashAd_CSJ
.
hidden
=
YES
;
[
self
.
splashAd_CSJ
removeFromSuperview
];
[
self
.
splashAd_CSJ
removeFromSuperview
];
self
.
currentData
.
ADError
=
error
;
}
}
/**
/**
...
@@ -346,6 +349,7 @@
...
@@ -346,6 +349,7 @@
*/
*/
-
(
void
)
nativeExpressAdFailToLoad
:
(
BUNativeExpressAdManager
*
)
nativeExpressAd
error
:
(
NSError
*
_Nullable
)
error
;{
-
(
void
)
nativeExpressAdFailToLoad
:
(
BUNativeExpressAdManager
*
)
nativeExpressAd
error
:
(
NSError
*
_Nullable
)
error
;{
self
.
loadSuccessCallbackBlock
(
self
.
currentData
,
NO
);
self
.
loadSuccessCallbackBlock
(
self
.
currentData
,
NO
);
self
.
currentData
.
ADError
=
error
;
}
}
...
@@ -361,6 +365,8 @@
...
@@ -361,6 +365,8 @@
*/
*/
-
(
void
)
nativeExpressAdViewRenderFail
:
(
BUNativeExpressAdView
*
)
nativeExpressAdView
error
:
(
NSError
*
_Nullable
)
error
;{
-
(
void
)
nativeExpressAdViewRenderFail
:
(
BUNativeExpressAdView
*
)
nativeExpressAdView
error
:
(
NSError
*
_Nullable
)
error
;{
self
.
showSuccessCallbackBlock
(
self
.
currentData
,
NO
);
self
.
showSuccessCallbackBlock
(
self
.
currentData
,
NO
);
self
.
currentData
.
ADError
=
error
;
}
}
/**
/**
...
@@ -391,7 +397,8 @@ Sent when a playerw playback status changed.
...
@@ -391,7 +397,8 @@ Sent when a playerw playback status changed.
* @param error : error of player
* @param error : error of player
*/
*/
-
(
void
)
nativeExpressAdViewPlayerDidPlayFinish
:
(
BUNativeExpressAdView
*
)
nativeExpressAdView
error
:
(
NSError
*
)
error
;{
-
(
void
)
nativeExpressAdViewPlayerDidPlayFinish
:
(
BUNativeExpressAdView
*
)
nativeExpressAdView
error
:
(
NSError
*
)
error
;{
self
.
currentData
.
ADError
=
error
;
}
}
/**
/**
...
...
GYDemo/GYDemo/SCAds/platform/AddGDTADManager.m
View file @
e3e6e25f
...
@@ -111,6 +111,7 @@
...
@@ -111,6 +111,7 @@
*/
*/
-
(
void
)
splashAdFailToPresent
:
(
GDTSplashAd
*
)
splashAd
withError
:
(
NSError
*
)
error
;{
-
(
void
)
splashAdFailToPresent
:
(
GDTSplashAd
*
)
splashAd
withError
:
(
NSError
*
)
error
;{
self
.
showSuccessCallbackBlock
(
self
.
currentData
,
NO
);
self
.
showSuccessCallbackBlock
(
self
.
currentData
,
NO
);
self
.
currentData
.
ADError
=
error
;
}
}
...
@@ -271,7 +272,8 @@
...
@@ -271,7 +272,8 @@
NSLog
(
@"页面加载失败"
);
NSLog
(
@"页面加载失败"
);
}
}
NSLog
(
@"ERROR: %@"
,
error
);
NSLog
(
@"ERROR: %@"
,
error
);
self
.
currentData
.
ADError
=
error
;
self
.
loadSuccessCallbackBlock
(
self
.
currentData
,
NO
);
self
.
loadSuccessCallbackBlock
(
self
.
currentData
,
NO
);
}
}
...
@@ -315,6 +317,7 @@
...
@@ -315,6 +317,7 @@
*/
*/
-
(
void
)
nativeExpressAdFailToLoad
:
(
GDTNativeExpressAd
*
)
nativeExpressAd
error
:
(
NSError
*
)
error
;{
-
(
void
)
nativeExpressAdFailToLoad
:
(
GDTNativeExpressAd
*
)
nativeExpressAd
error
:
(
NSError
*
)
error
;{
self
.
loadSuccessCallbackBlock
(
self
.
currentData
,
NO
);
self
.
loadSuccessCallbackBlock
(
self
.
currentData
,
NO
);
self
.
currentData
.
ADError
=
error
;
}
}
...
...
GYDemo/GYDemo/SCAds/platform/AddRuiShiADManager.m
View file @
e3e6e25f
...
@@ -92,6 +92,7 @@
...
@@ -92,6 +92,7 @@
*/
*/
-
(
void
)
vl_splashAd
:
(
VLNSplashAd
*
)
splashAd
didFailWithError
:
(
NSError
*
)
error
{
-
(
void
)
vl_splashAd
:
(
VLNSplashAd
*
)
splashAd
didFailWithError
:
(
NSError
*
)
error
{
self
.
showSuccessCallbackBlock
(
self
.
currentData
,
NO
);
self
.
showSuccessCallbackBlock
(
self
.
currentData
,
NO
);
self
.
currentData
.
ADError
=
error
;
}
}
...
@@ -170,6 +171,7 @@
...
@@ -170,6 +171,7 @@
*/
*/
-
(
void
)
vl_rewardVideoAd
:
(
VLNRewardedVideoAd
*
)
rewardedVideoAd
loadFailedWithError
:
(
NSError
*
)
error
{
-
(
void
)
vl_rewardVideoAd
:
(
VLNRewardedVideoAd
*
)
rewardedVideoAd
loadFailedWithError
:
(
NSError
*
)
error
{
self
.
loadSuccessCallbackBlock
(
self
.
currentData
,
NO
);
self
.
loadSuccessCallbackBlock
(
self
.
currentData
,
NO
);
self
.
currentData
.
ADError
=
error
;
}
}
...
@@ -178,6 +180,8 @@
...
@@ -178,6 +180,8 @@
*/
*/
-
(
void
)
vl_rewardVideoAd
:
(
VLNRewardedVideoAd
*
)
rewardedVideoAd
playFailedWithError
:
(
NSError
*
)
error
{
-
(
void
)
vl_rewardVideoAd
:
(
VLNRewardedVideoAd
*
)
rewardedVideoAd
playFailedWithError
:
(
NSError
*
)
error
{
self
.
showSuccessCallbackBlock
(
self
.
currentData
,
NO
);
self
.
showSuccessCallbackBlock
(
self
.
currentData
,
NO
);
self
.
currentData
.
ADError
=
error
;
}
}
/**
/**
...
@@ -213,6 +217,7 @@
...
@@ -213,6 +217,7 @@
*/
*/
-
(
void
)
vl_nativeAd
:
(
VLNNativeAd
*
)
nativeAd
didFailWithError
:
(
NSError
*
)
error
;{
-
(
void
)
vl_nativeAd
:
(
VLNNativeAd
*
)
nativeAd
didFailWithError
:
(
NSError
*
)
error
;{
self
.
loadSuccessCallbackBlock
(
self
.
currentData
,
NO
);
self
.
loadSuccessCallbackBlock
(
self
.
currentData
,
NO
);
self
.
currentData
.
ADError
=
error
;
}
}
...
...
GYDemo/GYDemo/SCAds/platform/AddSigmobADManager.m
View file @
e3e6e25f
...
@@ -88,6 +88,7 @@
...
@@ -88,6 +88,7 @@
*/
*/
-
(
void
)
onSplashAdFailToPresent
:
(
WindSplashAd
*
)
splashAd
withError
:
(
NSError
*
)
error
;{
-
(
void
)
onSplashAdFailToPresent
:
(
WindSplashAd
*
)
splashAd
withError
:
(
NSError
*
)
error
;{
self
.
showSuccessCallbackBlock
(
self
.
currentData
,
NO
);
self
.
showSuccessCallbackBlock
(
self
.
currentData
,
NO
);
self
.
currentData
.
ADError
=
error
;
}
}
...
@@ -155,6 +156,7 @@
...
@@ -155,6 +156,7 @@
*/
*/
-
(
void
)
onVideoAdPlayError
:
(
NSError
*
)
error
placementId
:
(
NSString
*
)
placementId
;{
-
(
void
)
onVideoAdPlayError
:
(
NSError
*
)
error
placementId
:
(
NSString
*
)
placementId
;{
self
.
showSuccessCallbackBlock
(
self
.
currentData
,
NO
);
self
.
showSuccessCallbackBlock
(
self
.
currentData
,
NO
);
self
.
currentData
.
ADError
=
error
;
}
}
/**
/**
...
...
GYDemo/GYDemo/ViewController/GYWheelSurfViewController.m
View file @
e3e6e25f
...
@@ -81,6 +81,8 @@
...
@@ -81,6 +81,8 @@
-
(
IBAction
)
startBtn
:
(
UIButton
*
)
sender
{
-
(
IBAction
)
startBtn
:
(
UIButton
*
)
sender
{
WEAKSELF
;
WEAKSELF
;
if
(
self
.
isVideo
)
{
if
(
self
.
isVideo
)
{
[
IOSADManager
shareADManager
].
advertisingSpace
=
@"play_adVideo_end_turntable"
;
[[
IOSADManager
shareADManager
]
showADType
:
ADType_Video
resultBlock
:
^
(
BOOL
success
)
{
[[
IOSADManager
shareADManager
]
showADType
:
ADType_Video
resultBlock
:
^
(
BOOL
success
)
{
if
(
success
)
{
if
(
success
)
{
[[
CGUserManager
shared
]
addLocCollection
:
@"play_adVideo_end_turntable"
value
:
@""
];
[[
CGUserManager
shared
]
addLocCollection
:
@"play_adVideo_end_turntable"
value
:
@""
];
...
...
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