|
10 | 10 | #define UMSYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending) |
11 | 11 | #define _IPHONE80_ 80000 |
12 | 12 |
|
13 | | - |
| 13 | +#if DEBUG |
| 14 | +#import <FLEX/FLEXManager.h> |
| 15 | +#import "RRFPSBar.h" |
| 16 | +#endif |
14 | 17 |
|
15 | 18 | #import "AppDelegate.h" |
16 | 19 | #import "RootTabViewController.h" |
|
24 | 27 | #import "BaseNavigationController.h" |
25 | 28 | #import "PasswordViewController.h" |
26 | 29 | #import "IntroductionViewController.h" |
| 30 | +#import "TweetSendViewController.h" |
| 31 | + |
27 | 32 | #import "FunctionIntroManager.h" |
28 | 33 | #import <UMengSocial/UMSocial.h> |
29 | 34 | #import <UMengSocial/UMSocialWechatHandler.h> |
@@ -104,6 +109,11 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( |
104 | 109 | [self completionStartAnimationWithOptions:launchOptions]; |
105 | 110 | }]; |
106 | 111 |
|
| 112 | +#if DEBUG |
| 113 | +// [[RRFPSBar sharedInstance] setShowsAverage:YES]; |
| 114 | +// [[RRFPSBar sharedInstance] setHidden:NO]; |
| 115 | +#endif |
| 116 | + |
107 | 117 | return YES; |
108 | 118 | } |
109 | 119 |
|
@@ -256,7 +266,16 @@ - (void)customizeInterface { |
256 | 266 | - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation{ |
257 | 267 | DebugLog(@"path: %@, params: %@", [url path], [url queryParams]); |
258 | 268 | if ([url.absoluteString hasPrefix:kCodingAppScheme]) { |
259 | | - if (![self showPasswordWithURL:url]) {//如果不是登录注册的链接,就是用正常的解析模式解析 |
| 269 | + NSDictionary *queryParams = [url queryParams]; |
| 270 | + if (queryParams[@"email"] && queryParams[@"key"]) {//重置密码 |
| 271 | + [self showPasswordWithURL:url]; |
| 272 | + }else if ([queryParams[@"type"] isEqualToString:@"tweet"]){//发冒泡 |
| 273 | + if ([Login isLogin]) { |
| 274 | + [TweetSendViewController presentWithParams:queryParams]; |
| 275 | + }else{ |
| 276 | + [NSObject showHudTipStr:@"未登录"]; |
| 277 | + } |
| 278 | + }else{//一般模式解析网页 |
260 | 279 | [BaseViewController presentLinkStr:url.absoluteString]; |
261 | 280 | } |
262 | 281 | return YES; |
|
0 commit comments