...
|
...
|
@@ -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, ^{
|
...
|
...
|
|