add files
This commit is contained in:
@@ -15,6 +15,8 @@ NSString *const kShowAppGuard = @"ShowAppGuard";
|
||||
NSString *const kWeiXinSaveToken = @"WeiXinSaveToken";
|
||||
NSString *const kWeiXinUserInfo = @"WeiXinUserinfo";
|
||||
NSString *const kGiGaToken = @"GiGatoken";
|
||||
NSString *const kMaskeTime= @"userMaskeTime";
|
||||
#define MASKTIME_DEFAULT 20;
|
||||
|
||||
@implementation GiGaUserDefault
|
||||
|
||||
@@ -54,7 +56,9 @@ NSString *const kGiGaToken = @"GiGatoken";
|
||||
}
|
||||
|
||||
+(void)userLogOut{
|
||||
|
||||
UD_REMOVE_KEY(kGiGaToken);
|
||||
UD_REMOVE_KEY(kMaskeTime);
|
||||
UD_REMOVE_KEY(GIGADEFAULTKEY_USERID);
|
||||
}
|
||||
|
||||
@@ -99,6 +103,7 @@ NSString *const kGiGaToken = @"GiGatoken";
|
||||
+(void)saveWeiXinaccesstokenInfoWithDic:(NSDictionary *)dic
|
||||
{
|
||||
[UD_STADARDUD setObject:dic forKey:kWeiXinSaveToken];
|
||||
[UD_STADARDUD synchronize];
|
||||
}
|
||||
|
||||
+(NSDictionary *)getWeiXinAccessToenDic{
|
||||
@@ -109,6 +114,7 @@ NSString *const kGiGaToken = @"GiGatoken";
|
||||
+(void)saveWeiXinUserInfoDic:(NSDictionary *)dic
|
||||
{
|
||||
[UD_STADARDUD setObject:dic forKey:kWeiXinUserInfo];
|
||||
[UD_STADARDUD synchronize];
|
||||
}
|
||||
|
||||
+(NSDictionary *)getWeiXinUserInfoDic{
|
||||
@@ -116,5 +122,19 @@ NSString *const kGiGaToken = @"GiGatoken";
|
||||
return [UD_STADARDUD objectForKey:kWeiXinUserInfo];
|
||||
}
|
||||
|
||||
+(void)savaMaskeTime:(NSTimeInterval)time{
|
||||
[UD_STADARDUD setDouble:time forKey:kMaskeTime];
|
||||
[UD_STADARDUD synchronize];
|
||||
}
|
||||
|
||||
+ (NSTimeInterval)getUserMaskeTime{
|
||||
|
||||
NSTimeInterval time = [UD_STADARDUD doubleForKey:kMaskeTime];
|
||||
if (time == 0) {
|
||||
//time = 16 * 60;
|
||||
time = MASKTIME_DEFAULT;
|
||||
}
|
||||
return time;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user