This commit is contained in:
lianxiang
2018-10-09 09:02:59 +08:00
parent 431a19b043
commit dc1b1e330f
50 changed files with 880 additions and 255 deletions
+5
View File
@@ -69,5 +69,10 @@
+(void)savaMaskeTime:(NSTimeInterval)time;
+(NSTimeInterval)getUserMaskeTime;
/**
记录是否测试过
*/
+(void)saveUserTestFlag:(BOOL)tested;
+(BOOL)isUserTest;
@end
+14
View File
@@ -17,6 +17,7 @@ NSString *const kWeiXinUserInfo = @"WeiXinUserinfo";
NSString *const kGiGaToken = @"GiGatoken";
NSString *const kMaskeTime= @"userMaskeTime";
NSString *const kWeiXinCodeInfo = @"WeiXinCodeinfo";
NSString *const kShowUserTested = @"kShowUserTested";
#define MASKTIME_DEFAULT 20;
@implementation GiGaUserDefault
@@ -151,4 +152,17 @@ NSString *const kWeiXinCodeInfo = @"WeiXinCodeinfo";
return time;
}
+(void)saveUserTestFlag:(BOOL)tested{
[UD_STADARDUD setBool:tested forKey:kShowUserTested];
[UD_STADARDUD synchronize];
}
+(BOOL)isUserTest{
BOOL showedGaurd = [UD_STADARDUD boolForKey:kShowUserTested];
[UD_STADARDUD synchronize];
return showedGaurd;
}
@end
Binary file not shown.
File diff suppressed because one or more lines are too long