https://portal.shadowsocks.au/
///本地客户端
//为防止进度和时长没有及时保存最新数据,在首页调用本地存储的信息重新用接口保存每隔时间段本都存储的信息,调用成功后删除本地存储的信息
NSDictionary *progressDic = [[NSUserDefaults standardUserDefaults] objectForKey:KProgressDic];
if (progressDic) {
if ([progressDic isKindOfClass:[NSDictionary class]]) {
if ([progressDic.allKeys count]) {
//保存章节进度
[self acqucireLocalRecordServiceProgress];
}
}
}
NSDictionary *studyTimeDic = [[NSUserDefaults standardUserDefaults] objectForKey:KStudyTimeDic];
if (studyTimeDic) {
if ([studyTimeDic isKindOfClass:[NSDictionary class]]) {
if ([[studyTimeDic allKeys] count]) {
//保存学习时长
[self acqutireLocalTimeRecordLast_learn];
}
}
}
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(introduceAfterUpdateAlert) name:@"XZYPHomeUpdateAfterIntroduceNotification" object:nil];
for (UIView *theSubview in ((AppDelegate *)[UIApplication sharedApplication].delegate).window.subviews) {
if ([theSubview isKindOfClass:XZYPromptAlertView.class]) {
[((AppDelegate *)[UIApplication sharedApplication].delegate).window bringSubviewToFront:theSubview];
break;
}
}