mirror of
https://github.com/leanote/leanote-ios.git
synced 2026-01-13 06:03:40 +08:00
默认使用leanote https
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user