Commit 2da0d055 authored by Mazy's avatar Mazy

fix big bugs

parent 97564e65
...@@ -601,10 +601,10 @@ NSDictionary* appLaunchOpts; ...@@ -601,10 +601,10 @@ NSDictionary* appLaunchOpts;
GYCashSixAwardAlertView *alertVC = [GYCashSixAwardAlertView loadFromNib]; GYCashSixAwardAlertView *alertVC = [GYCashSixAwardAlertView loadFromNib];
[alertVC showAlertToView:[[self ufw] appController].window amount:num firstShow: true onlyCash:false]; [alertVC showAlertToView:[[self ufw] appController].window amount:num firstShow: true onlyCash:false];
// WEAKSELF WEAKSELF
alertVC.closeCallBack = ^(bool result) { alertVC.closeCallBack = ^(bool result) {
if (result) { if (result) {
[self gainMultipleAward: sid]; [weakSelf gainMultipleAward: sid];
} else { } else {
// 取消播放领取 // 取消播放领取
[[CGNetworkTools shared] postWithAction: adForcePost parameters:@{} success:^(id _Nonnull response) { [[CGNetworkTools shared] postWithAction: adForcePost parameters:@{} success:^(id _Nonnull response) {
...@@ -630,7 +630,7 @@ NSDictionary* appLaunchOpts; ...@@ -630,7 +630,7 @@ NSDictionary* appLaunchOpts;
NSDictionary *result = [[response objectForKey:@"result"] objectForKey:@"data"]; NSDictionary *result = [[response objectForKey:@"result"] objectForKey:@"data"];
NSArray *rewardContentList = [result objectForKey:@"rewardContentList"]; NSArray *rewardContentList = [result objectForKey:@"rewardContentList"];
if (rewardContentList){ if (rewardContentList == nil){
return; return;
} }
if (rewardContentList.count <= 0) { if (rewardContentList.count <= 0) {
......
...@@ -254,7 +254,7 @@ static IOSADManager * manager = nil; ...@@ -254,7 +254,7 @@ static IOSADManager * manager = nil;
[weakSelf blockResultLoadWithData:model andSuccess:success]; [weakSelf blockResultLoadWithData:model andSuccess:success];
}; };
csjAd.showSuccessCallbackBlock = ^(GYAdsTrackModel * _Nonnull model, BOOL success) { csjAd.showSuccessCallbackBlock = ^(GYAdsTrackModel * _Nonnull model, BOOL success) {
[weakSelf blockResultShowWithData:model andSuccess:YES]; [weakSelf blockResultShowWithData:model andSuccess:success];
}; };
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(time * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(time * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
...@@ -277,7 +277,7 @@ static IOSADManager * manager = nil; ...@@ -277,7 +277,7 @@ static IOSADManager * manager = nil;
[weakSelf blockResultLoadWithData:model andSuccess:success]; [weakSelf blockResultLoadWithData:model andSuccess:success];
}; };
csjAd.showSuccessCallbackBlock = ^(GYAdsTrackModel * _Nonnull model, BOOL success) { csjAd.showSuccessCallbackBlock = ^(GYAdsTrackModel * _Nonnull model, BOOL success) {
[weakSelf blockResultShowWithData:model andSuccess:YES]; [weakSelf blockResultShowWithData:model andSuccess:success];
}; };
} }
...@@ -298,7 +298,7 @@ static IOSADManager * manager = nil; ...@@ -298,7 +298,7 @@ static IOSADManager * manager = nil;
[weakSelf blockResultLoadWithData:model andSuccess:success]; [weakSelf blockResultLoadWithData:model andSuccess:success];
}; };
csjAd.showSuccessCallbackBlock = ^(GYAdsTrackModel * _Nonnull model, BOOL success) { csjAd.showSuccessCallbackBlock = ^(GYAdsTrackModel * _Nonnull model, BOOL success) {
[weakSelf blockResultShowWithData:model andSuccess:YES]; [weakSelf blockResultShowWithData:model andSuccess:success];
}; };
} }
...@@ -318,7 +318,7 @@ static IOSADManager * manager = nil; ...@@ -318,7 +318,7 @@ static IOSADManager * manager = nil;
[weakSelf blockResultLoadWithData:model andSuccess:success]; [weakSelf blockResultLoadWithData:model andSuccess:success];
}; };
csjAd.showSuccessCallbackBlock = ^(GYAdsTrackModel * _Nonnull model, BOOL success) { csjAd.showSuccessCallbackBlock = ^(GYAdsTrackModel * _Nonnull model, BOOL success) {
[weakSelf blockResultShowWithData:model andSuccess:YES]; [weakSelf blockResultShowWithData:model andSuccess:success];
}; };
......
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