|
@@ -22,6 +22,7 @@ static NSString* s_receivedVoiceNum = @"__receivedVoiceNum__";
|
|
|
static NSString* s_lastUpdateVoiceDate = @"__lastUpdateVoiceDate";
|
|
|
static NSString* s_lastSimulatorUserIdKey = @"__lastSimulatorUserIdKey__";
|
|
|
static NSString* s_pushTokenKey = @"__pushTokenKey__";
|
|
|
+static NSString* s_countryAreaKey = @"__countryAreaKey__";
|
|
|
|
|
|
@implementation UserDataHelper
|
|
|
|
|
@@ -133,6 +134,20 @@ static NSString* s_pushTokenKey = @"__pushTokenKey__";
|
|
|
return token;
|
|
|
}
|
|
|
|
|
|
++ (void)setCountryArea:(NSInteger)value {
|
|
|
+ NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
|
|
|
+ [userDefaults setObject:@(value) forKey:s_countryAreaKey];
|
|
|
+ [userDefaults synchronize];
|
|
|
+}
|
|
|
+
|
|
|
++ (int)getCountryArea {
|
|
|
+ NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
|
|
|
+ id value = [userDefaults valueForKey:s_countryAreaKey];
|
|
|
+ if(value == nil)
|
|
|
+ return 0;
|
|
|
+ return [value intValue];
|
|
|
+}
|
|
|
+
|
|
|
+ (void)setLastLoginInfo:(NSDictionary*)loingInfo
|
|
|
{
|
|
|
NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
|