Initial commit

This commit is contained in:
lianxiang
2018-08-22 11:15:52 +08:00
parent d98e20881f
commit 249bf6864e
491 changed files with 68665 additions and 7 deletions
+38
View File
@@ -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