Authored by 刘金林

optimise 1.0.1

... ... @@ -9,7 +9,7 @@
Pod::Spec.new do |s|
s.name = "YHEventReport"
s.version = "1.0.0"
s.version = "1.0.1"
s.summary = "YHEventReport."
s.description = "无埋点SDK"
s.homepage = "http://git.yoho.cn/mobile/YH_EventReport"
... ...
... ... @@ -251,7 +251,7 @@ static NSString *const kParamKeyType = @"type";
{
dispatch_async(self.queue, ^{
if (self.mode == YHEventReportStrategyInterval) {
//todo save to disk
[self saveToDiskOfInfo:self.infoCacheArray];
[self.infoCacheArray removeAllObjects];
}
});
... ... @@ -339,9 +339,6 @@ static NSString *const kParamKeyType = @"type";
}
- (void)timerAction {
if (!self.infoCacheArray.count) {
return;
}
[self uploadEventAndCustomInfo:self.infoCacheArray type:YHEventReportTrackDataTypeHeartbeat completion:^(BOOL isSuccess) {
if (isSuccess) {
dispatch_async(self.queue, ^{
... ...