Initial commit
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
//
|
||||
// GiGaServerConfig.m
|
||||
// GIGA
|
||||
//
|
||||
// Created by lianxiang on 2018/8/13.
|
||||
// Copyright © 2018年 com.giga.ios. All rights reserved.
|
||||
//
|
||||
|
||||
#import "GiGaServerConfig.h"
|
||||
|
||||
@implementation GiGaServerConfig
|
||||
+ (void)setServerType:(NSInteger)type
|
||||
{
|
||||
#if defined(DEBUG) || defined(RELEASE_VERTION_TEST)
|
||||
|
||||
#endif
|
||||
switch (type) {
|
||||
case 0://测试环境
|
||||
{
|
||||
|
||||
[[NSUserDefaults standardUserDefaults] setValue:@"https://" forKey:@"MainUrl"];
|
||||
} break;
|
||||
case 1: //生产环境
|
||||
{
|
||||
[[NSUserDefaults standardUserDefaults] setValue:@"https://" forKey:@"MainUrl"];
|
||||
} break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
+ (NSString *)getMainUrl
|
||||
{
|
||||
return [[NSUserDefaults standardUserDefaults] objectForKey:@"MainUrl"];
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user