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
99bb152b
Commit
99bb152b
authored
Nov 18, 2020
by
Mazy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix login bugs
parent
bad9a72e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
15 deletions
+36
-15
project.pbxproj
GYDemo/GYDemo.xcodeproj/project.pbxproj
+2
-2
AppDelegate.mm
GYDemo/GYDemo/AppDelegate.mm
+34
-13
UserInterfaceState.xcuserstate
...cuserdata/mazy.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
No files found.
GYDemo/GYDemo.xcodeproj/project.pbxproj
View file @
99bb152b
...
...
@@ -1023,7 +1023,7 @@
CODE_SIGN_ENTITLEMENTS
=
GYDemo/GYDemo.entitlements
;
CODE_SIGN_IDENTITY
=
"iPhone Developer"
;
CODE_SIGN_STYLE
=
Manual
;
CURRENT_PROJECT_VERSION
=
13
0
;
CURRENT_PROJECT_VERSION
=
13
1
;
DEVELOPMENT_TEAM
=
XWMRLLSSFL
;
ENABLE_BITCODE
=
NO
;
GCC_INCREASE_PRECOMPILED_HEADER_SHARING
=
NO
;
...
...
@@ -1055,7 +1055,7 @@
CODE_SIGN_ENTITLEMENTS
=
GYDemo/GYDemo.entitlements
;
CODE_SIGN_IDENTITY
=
"iPhone Developer"
;
CODE_SIGN_STYLE
=
Manual
;
CURRENT_PROJECT_VERSION
=
13
0
;
CURRENT_PROJECT_VERSION
=
13
1
;
DEVELOPMENT_TEAM
=
XWMRLLSSFL
;
ENABLE_BITCODE
=
NO
;
GCC_INCREASE_PRECOMPILED_HEADER_SHARING
=
NO
;
...
...
GYDemo/GYDemo/AppDelegate.mm
View file @
99bb152b
...
...
@@ -770,7 +770,6 @@ NSDictionary* appLaunchOpts;
[[[self ufw] appController].window makeKeyAndVisible];
[[CGUserManager shared] addLocCollection:@"tab_imp" value:@"1"];
});
}];
if ([[data Read] objectForKey:@"isFirstInstall"]) {
...
...
@@ -790,19 +789,41 @@ NSDictionary* appLaunchOpts;
- (void)launchAdSuccesShow {
NSString *status = [[CGUserManager shared].appSwitch[@"isopenH5"] stringValue];
NSLog(@"isopenH5 = %@", status);
if ([status isEqualToString:@"1"]) {
Data * data = [[Data alloc] init];
if([[data Read] objectForKey:@"refresh_token"] == nil) {
GYLoginViewController *loginVC = [[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateViewControllerWithIdentifier:@"GYLoginViewController"];
loginVC.modalPresentationStyle = UIModalPresentationFullScreen;
UINavigationController *naviVC = [[UINavigationController alloc] initWithRootViewController:loginVC];
naviVC.modalPresentationStyle = UIModalPresentationFullScreen;
naviVC.view.frame = UIScreen.mainScreen.bounds;
[[[self ufw] appController].window.rootViewController.view addSubview:naviVC.view];
[[[self ufw] appController].window.rootViewController addChildViewController:naviVC];
if ([CGUserManager shared].model == nil) {
[[CGUserManager shared] getServiceInfo:^{
NSString *status = [[CGUserManager shared].appSwitch[@"isopenH5"] stringValue];
NSLog(@"isopenH5 = %@", status);
if ([status isEqualToString:@"1"]) {
Data * data = [[Data alloc] init];
if([[data Read] objectForKey:@"refresh_token"] == nil) {
GYLoginViewController *loginVC = [[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateViewControllerWithIdentifier:@"GYLoginViewController"];
loginVC.modalPresentationStyle = UIModalPresentationFullScreen;
UINavigationController *naviVC = [[UINavigationController alloc] initWithRootViewController:loginVC];
naviVC.modalPresentationStyle = UIModalPresentationFullScreen;
naviVC.view.frame = UIScreen.mainScreen.bounds;
[[[self ufw] appController].window.rootViewController.view addSubview:naviVC.view];
[[[self ufw] appController].window.rootViewController addChildViewController:naviVC];
}
}
} failure:^{
}];
} else {
NSString *status = [[CGUserManager shared].appSwitch[@"isopenH5"] stringValue];
NSLog(@"isopenH5 = %@", status);
if ([status isEqualToString:@"1"]) {
Data * data = [[Data alloc] init];
if([[data Read] objectForKey:@"refresh_token"] == nil) {
GYLoginViewController *loginVC = [[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateViewControllerWithIdentifier:@"GYLoginViewController"];
loginVC.modalPresentationStyle = UIModalPresentationFullScreen;
UINavigationController *naviVC = [[UINavigationController alloc] initWithRootViewController:loginVC];
naviVC.modalPresentationStyle = UIModalPresentationFullScreen;
naviVC.view.frame = UIScreen.mainScreen.bounds;
[[[self ufw] appController].window.rootViewController.view addSubview:naviVC.view];
[[[self ufw] appController].window.rootViewController addChildViewController:naviVC];
}
}
}
}
...
...
farm.xcworkspace/xcuserdata/mazy.xcuserdatad/UserInterfaceState.xcuserstate
View file @
99bb152b
No preview for this file type
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