默认使用leanote https

This commit is contained in:
life
2015-11-08 16:02:43 +08:00
parent 22b6bcebbd
commit 6468254994

View File

@@ -15,7 +15,7 @@
#import "TagService.h"
static NSString* const UserT = @"User"; //
static NSString* const DefaultHost = @"http://leanote.com"; // @"http://localhost:9000"; // host
static NSString* const DefaultHost = @"https://leanote.com"; // @"http://localhost:9000"; // host
static User *curUser;
@@ -57,6 +57,12 @@ static BOOL openInited;
if([Common isBlankString:curUser.host]) {
return DefaultHost;
}
// http://leanote.com, https
NSString *host = curUser.host;
if ([host isEqualToString:@"http://leanote.com"]) {
return DefaultHost;
}
return curUser.host;
// return @"http://localhost:9000";
}