Skip to content

Commit

Permalink
Releae 0.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
bawn committed Jul 3, 2015
1 parent bc4273e commit 59d547a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LCNetwork.podspec
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "LCNetwork"
s.version = "0.0.7"
s.version = "0.0.8"
s.summary = "基于AFNetworking的网络库封装"
s.homepage = "https://github.com/bawn/LCNetwork"
s.license = 'MIT'
Expand Down
6 changes: 5 additions & 1 deletion LCNetwork/LCNetworkAgent.m
Expand Up @@ -236,7 +236,11 @@ - (BOOL)processRequestTime:(LCBaseRequest *)request{
}
}
else{
[[[TMCache sharedCache] diskCache] setObject:localDate forKey:hashKey];
NSDate *newData = [NSDate dateWithYear:[localDate year] month:[localDate month] day:[localDate day] hour:limitDate.hour minute:limitDate.minute second:limitDate.second];
double seconds = [localDate secondsLaterThan:newData];
if (seconds > 0) {
[[[TMCache sharedCache] diskCache] setObject:localDate forKey:hashKey];
}
}
}
return NO;
Expand Down
6 changes: 5 additions & 1 deletion LCNetworkDemo/LCNetworkDemo/LCNetwork/LCNetworkAgent.m
Expand Up @@ -236,7 +236,11 @@ - (BOOL)processRequestTime:(LCBaseRequest *)request{
}
}
else{
[[[TMCache sharedCache] diskCache] setObject:localDate forKey:hashKey];
NSDate *newData = [NSDate dateWithYear:[localDate year] month:[localDate month] day:[localDate day] hour:limitDate.hour minute:limitDate.minute second:limitDate.second];
double seconds = [localDate secondsLaterThan:newData];
if (seconds > 0) {
[[[TMCache sharedCache] diskCache] setObject:localDate forKey:hashKey];
}
}
}
return NO;
Expand Down

0 comments on commit 59d547a

Please sign in to comment.