fix
This commit is contained in:
@@ -69,5 +69,10 @@
|
||||
+(void)savaMaskeTime:(NSTimeInterval)time;
|
||||
+(NSTimeInterval)getUserMaskeTime;
|
||||
|
||||
/**
|
||||
记录是否测试过
|
||||
*/
|
||||
+(void)saveUserTestFlag:(BOOL)tested;
|
||||
+(BOOL)isUserTest;
|
||||
|
||||
@end
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user