Commit 37c09aa4 authored by zhangshuai's avatar zhangshuai

修改超时

parent 0fd68957
......@@ -136,19 +136,19 @@
}
- (void)getAdsDataSource{
WEAKSELF
[IOSADManager shareADManager].nativeADSize = self.adContentView.frame.size;
[IOSADManager shareADManager].flowBgView = self.adContentView;
[[IOSADManager shareADManager] showADType:ADType_BigImage resultBlock:^(BOOL success) {
if (success) {
UIView * flowView = [IOSADManager shareADManager].flowBgView;
[self.adContentView addSubview:flowView];
[weakSelf.adContentView addSubview:flowView];
}
CGFloat offset = (UIScreen.mainScreen.bounds.size.height - self.bgView.bounds.size.height) / 2 - 40 - statusBarFrameHeight;
CGFloat offset = (UIScreen.mainScreen.bounds.size.height - weakSelf.bgView.bounds.size.height) / 2 - 40 - statusBarFrameHeight;
[UIView animateWithDuration:0.25 animations:^{
self.bgView.transform = CGAffineTransformMakeTranslation(0, -offset);
self.adContentView.transform = CGAffineTransformMakeTranslation(0, -offset);
weakSelf.bgView.transform = CGAffineTransformMakeTranslation(0, -offset);
weakSelf.adContentView.transform = CGAffineTransformMakeTranslation(0, -offset);
} completion:^(BOOL finished) {
}];
......
......@@ -644,9 +644,9 @@ NSDictionary* appLaunchOpts;
if (rewardContentList == nil){
return;
}
// if (rewardContentList.count <= 0) {
// return;
// }
if (rewardContentList.count <= 0) {
return;
}
CGFloat totalRewardNumF = [[rewardContentList.firstObject objectForKey:@"totalRewardNum"] floatValue];
NSString *totalRewardNumS = [NSString stringWithFormat:@"%.2f", totalRewardNumF / 100.0];
......
......@@ -14,9 +14,7 @@
#ifndef GYPrefixHeader_pch
#define GYPrefixHeader_pch
//#define ServerReport @"http://reporttest.zhangxinhulian.com"
//#define ServerHost @"http://feedapitest2.zhangxinhulian.com" // 服务端接口地址
//#define ServerAds @"http://bstest.zhangxinhulian.com/v4/ads"
#define ServerReport @"http://report.clouddistribute.net"
#define ServerHost @"https://feedapi.clouddistribute.net" // 服务端接口地址
......
......@@ -98,7 +98,7 @@
}
- (void)getAdsDataSource{
WEAKSELF;
[IOSADManager shareADManager].nativeADSize = self.adsBgView.frame.size;
[IOSADManager shareADManager].flowBgView = self.adsBgView;
......@@ -106,12 +106,12 @@
if (success) {
UIView * flowView = [IOSADManager shareADManager].flowBgView;
self.adsHeightConstraint.constant = flowView.bounds.size.height;
weakSelf.adsHeightConstraint.constant = flowView.bounds.size.height;
self.headerView.frame = CGRectMake(0, 0, self.tableView.frame.size.width, flowView.frame.size.height+77);
self.tableViewHeightConstraint.constant = self.headerView.frame.size.height + 300 < KScreenHeight-SafeAreaTopHeight ? self.headerView.frame.size.height + 300 : KScreenHeight-SafeAreaTopHeight;
[self.tableView reloadData];
[self.adsBgView addSubview:flowView];
weakSelf.headerView.frame = CGRectMake(0, 0, weakSelf.tableView.frame.size.width, flowView.frame.size.height+77);
weakSelf.tableViewHeightConstraint.constant = weakSelf.headerView.frame.size.height + 300 < KScreenHeight-SafeAreaTopHeight ? weakSelf.headerView.frame.size.height + 300 : KScreenHeight-SafeAreaTopHeight;
[weakSelf.tableView reloadData];
[weakSelf.adsBgView addSubview:flowView];
......
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