Permalink
Browse files

define qq callback

#define kQQCallback @"qq.com"
  • Loading branch information...
1 parent 344a30f commit aae87694fbb69a55ec84adb29ff8199915ede3bc @qdvictory committed Sep 27, 2012
View
@@ -1,7 +1,9 @@
1.CHShareManager.m中修改配置信息
-2.qq登录时回调url换成 qq.com
- sina无需修改
+2.修改qq回调地址
+WBAuthorizeWebView.m
+#define kQQCallback @"qq.com"
+sina无需修改
3.添加Security.framework
@@ -12,6 +12,7 @@
#define kQQAppkey @"100304947"
#define kQQSecret @""
+
@implementation CHShareManager
static CHShareManager *_console;
@@ -22,6 +22,8 @@
#import "NSString+URLEncoding.h"
#import "SFHFKeychainUtils.h"
+#define kQQCallback @"qq.com"
+
@interface WBAuthorizeWebView (Private)
- (void)bounceOutAnimationStopped;
@@ -369,7 +371,7 @@ - (BOOL)webView:(UIWebView *)aWebView shouldStartLoadWithRequest:(NSURLRequest *
// return YES;
// }
// else
- if ([request.URL.host isEqualToString:@"qq.com"])
+ if ([request.URL.host isEqualToString:kQQCallback])
{
NSURL* url = request.URL;
NSRange start = [[url absoluteString] rangeOfString:@"access_token="];

0 comments on commit aae8769

Please sign in to comment.