Commit 87dd3a5b authored by Mazy's avatar Mazy

fix voice and withdraw event bugs

parent 65e836e9
...@@ -993,7 +993,7 @@ ...@@ -993,7 +993,7 @@
CODE_SIGN_ENTITLEMENTS = GYDemo/GYDemo.entitlements; CODE_SIGN_ENTITLEMENTS = GYDemo/GYDemo.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer"; CODE_SIGN_IDENTITY = "iPhone Developer";
CODE_SIGN_STYLE = Manual; CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 121; CURRENT_PROJECT_VERSION = 103;
DEVELOPMENT_TEAM = XWMRLLSSFL; DEVELOPMENT_TEAM = XWMRLLSSFL;
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
GCC_INCREASE_PRECOMPILED_HEADER_SHARING = NO; GCC_INCREASE_PRECOMPILED_HEADER_SHARING = NO;
...@@ -1025,7 +1025,7 @@ ...@@ -1025,7 +1025,7 @@
CODE_SIGN_ENTITLEMENTS = GYDemo/GYDemo.entitlements; CODE_SIGN_ENTITLEMENTS = GYDemo/GYDemo.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer"; CODE_SIGN_IDENTITY = "iPhone Developer";
CODE_SIGN_STYLE = Manual; CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 121; CURRENT_PROJECT_VERSION = 103;
DEVELOPMENT_TEAM = XWMRLLSSFL; DEVELOPMENT_TEAM = XWMRLLSSFL;
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
GCC_INCREASE_PRECOMPILED_HEADER_SHARING = NO; GCC_INCREASE_PRECOMPILED_HEADER_SHARING = NO;
......
...@@ -79,7 +79,14 @@ NSDictionary* appLaunchOpts; ...@@ -79,7 +79,14 @@ NSDictionary* appLaunchOpts;
[[CGUserManager shared] addLocCollection:@"click_withdraw_redPack_5" value:@""]; [[CGUserManager shared] addLocCollection:@"click_withdraw_redPack_5" value:@""];
[[CGUserManager shared] addLocCollection:@"show_withdraw_page" value:@""]; [[CGUserManager shared] addLocCollection:@"show_withdraw_page" value:@""];
GYWebViewController * web = [[GYWebViewController alloc] init]; GYWebViewController * web = [[GYWebViewController alloc] init];
web.url = [[CGUserManager shared].h5_url objectForKey:@"withdrawurl"]; NSString *withdrawUrl = [[CGUserManager shared].h5_url objectForKey:@"withdrawurl"];
//显示操作引导
Data * data = [[Data alloc] init];
if(![[data Read] objectForKey:@"firstShowNovice"]){
[data WirteDic:@"1" Key:@"firstShowNovice"];
withdrawUrl = [withdrawUrl stringByAppendingString:@"?novice=1"];
}
web.url = withdrawUrl;
UINavigationController * nav = [[UINavigationController alloc] initWithRootViewController:web]; UINavigationController * nav = [[UINavigationController alloc] initWithRootViewController:web];
nav.modalPresentationStyle = UIModalPresentationFullScreen; nav.modalPresentationStyle = UIModalPresentationFullScreen;
[[[self ufw] appController].window.rootViewController presentViewController:nav animated:YES completion:nil]; [[[self ufw] appController].window.rootViewController presentViewController:nav animated:YES completion:nil];
...@@ -350,7 +357,7 @@ NSDictionary* appLaunchOpts; ...@@ -350,7 +357,7 @@ NSDictionary* appLaunchOpts;
}]; }];
}else{ } else {
[[CGUserManager shared] addLocCollection:@"play_adVideo_end_cloud_speed_up" value:@""]; [[CGUserManager shared] addLocCollection:@"play_adVideo_end_cloud_speed_up" value:@""];
} }
...@@ -684,6 +691,10 @@ NSDictionary* appLaunchOpts; ...@@ -684,6 +691,10 @@ NSDictionary* appLaunchOpts;
[self.window makeKeyAndVisible]; [self.window makeKeyAndVisible];
[[CGUserManager shared] getServiceInfo:^{
} failure:^{
}];
[ZJGuideConfig configWithWindow:self.window finishMainVC:nil showGuide:^(BOOL result) { [ZJGuideConfig configWithWindow:self.window finishMainVC:nil showGuide:^(BOOL result) {
dispatch_async(dispatch_get_main_queue(), ^{ dispatch_async(dispatch_get_main_queue(), ^{
[self initUnity]; [self initUnity];
...@@ -699,7 +710,7 @@ NSDictionary* appLaunchOpts; ...@@ -699,7 +710,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];
...@@ -718,7 +729,6 @@ NSDictionary* appLaunchOpts; ...@@ -718,7 +729,6 @@ NSDictionary* appLaunchOpts;
naviVC.modalPresentationStyle = UIModalPresentationFullScreen; naviVC.modalPresentationStyle = UIModalPresentationFullScreen;
[[[self ufw] appController].window.rootViewController.view addSubview:naviVC.view]; [[[self ufw] appController].window.rootViewController.view addSubview:naviVC.view];
[[[self ufw] appController].window.rootViewController addChildViewController:naviVC]; [[[self ufw] appController].window.rootViewController addChildViewController:naviVC];
// [[[self ufw] appController].window.rootViewController presentViewController:naviVC animated:false completion:nil];
// }); // });
} }
......
...@@ -398,6 +398,9 @@ static IOSADManager * manager = nil; ...@@ -398,6 +398,9 @@ static IOSADManager * manager = nil;
[[CGUserManager shared] addLocCollection:@"splash_request" value:@"splash_request_success"]; [[CGUserManager shared] addLocCollection:@"splash_request" value:@"splash_request_success"];
NSMutableArray * models = [NSMutableArray new]; NSMutableArray * models = [NSMutableArray new];
NSArray * arr = response[@"result"][@"data"]; NSArray * arr = response[@"result"][@"data"];
if (arr.count <= 0) {
return;
}
for (NSDictionary * dict in arr) { for (NSDictionary * dict in arr) {
GYAdsTrackModel * model = [GYAdsTrackModel new]; GYAdsTrackModel * model = [GYAdsTrackModel new];
[model setValuesForKeysWithDictionary:dict]; [model setValuesForKeysWithDictionary:dict];
...@@ -430,6 +433,9 @@ static IOSADManager * manager = nil; ...@@ -430,6 +433,9 @@ static IOSADManager * manager = nil;
NSMutableArray * models = [NSMutableArray new]; NSMutableArray * models = [NSMutableArray new];
NSArray * arr = response[@"result"][@"data"]; NSArray * arr = response[@"result"][@"data"];
if (arr.count <= 0) {
return;
}
for (NSDictionary * dict in arr) { for (NSDictionary * dict in arr) {
GYAdsTrackModel * model = [GYAdsTrackModel new]; GYAdsTrackModel * model = [GYAdsTrackModel new];
[model setValuesForKeysWithDictionary:dict]; [model setValuesForKeysWithDictionary:dict];
...@@ -468,11 +474,17 @@ static IOSADManager * manager = nil; ...@@ -468,11 +474,17 @@ static IOSADManager * manager = nil;
[[CGNetworkTools shared] getWithAdsAction:getAdsInfo parameters: @{@"slotName": @"common_video"} success:^(id _Nonnull response) { [[CGNetworkTools shared] getWithAdsAction:getAdsInfo parameters: @{@"slotName": @"common_video"} success:^(id _Nonnull response) {
if ([[response objectForKey:@"status"] intValue] == 200) { if ([[response objectForKey:@"status"] intValue] == 200) {
requestToTry = 0; requestToTry = 0;
NSLog(@"common_video-response = %@",response); NSLog(@"common_video-response = %@",response);
[[CGUserManager shared] addLocCollection:@"reward_request" value:@"reward_request_success"]; [[CGUserManager shared] addLocCollection:@"reward_request" value:@"reward_request_success"];
NSMutableArray * models = [[NSMutableArray alloc]init]; NSMutableArray * models = [[NSMutableArray alloc]init];
NSArray * arr = response[@"result"][@"data"]; NSArray * arr = response[@"result"][@"data"];
if (arr.count <= 0) {
return;
}
for (NSDictionary * dict in arr) { for (NSDictionary * dict in arr) {
GYAdsTrackModel * model = [GYAdsTrackModel new]; GYAdsTrackModel * model = [GYAdsTrackModel new];
[model setValuesForKeysWithDictionary:dict]; [model setValuesForKeysWithDictionary:dict];
......
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
self.progressView = [[UIProgressView alloc] initWithFrame:CGRectMake(0, statusBarFrameHeight, KScreenWidth, 2)]; self.progressView = [[UIProgressView alloc] initWithFrame:CGRectMake(0, statusBarFrameHeight, KScreenWidth, 2)];
_progressView.backgroundColor = [UIColor groupTableViewBackgroundColor]; _progressView.backgroundColor = [UIColor groupTableViewBackgroundColor];
_progressView.progressTintColor = UIColor.whiteColor; //kColorWithRGB(112, 156, 246); _progressView.progressTintColor = kColorWithRGB(112, 156, 246);
_progressView.transform = CGAffineTransformMakeScale(1.0f, 1.5f); _progressView.transform = CGAffineTransformMakeScale(1.0f, 1.5f);
[self.view addSubview:_progressView]; [self.view addSubview:_progressView];
[self.view bringSubviewToFront:self.progressView]; [self.view bringSubviewToFront:self.progressView];
......
This diff is collapsed.
No preview for this file type
This source diff could not be displayed because it is too large. You can view the blob instead.
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