Authored by John Tai

修复webview上报的bug

... ... @@ -66,7 +66,7 @@ static NSArray *kYHEventReportIgnoredViewControllerArray;
@"YH_NewFilterBaseVC",
@"YH_ProductFilterTopVC",
@"YH_ScanContainerVC",
@"YH_TabbarViewController",
@"YH_TabBarViewController",
@"YH_ViewController",
@"MMDrawerController",
@"YHExplorerViewController",
... ...
... ... @@ -260,17 +260,16 @@
NSTimeInterval elapsedTime;
if ([self.timedEvents[kYHEventReporrH5StartKey] doubleValue]>0) {
elapsedTime = [self eventElapsedTime:self.timedEvents[kYHEventReporrH5StartKey]];
elapsedTime = [self eventElapsedTime:kYHEventReporrH5StartKey];
}else{
elapsedTime = [self eventElapsedTime:webView.yh_viewId];
}
if (elapsedTime==0) {
return;
}
if (!IsStrEmpty(webView.yh_viewId)) {
if ([self.timedEvents.allKeys containsObject:kYHEventReporrH5StartKey]) {
dispatch_async(self.serialQueue, ^{
[self.timedEvents removeObjectForKey:kYHEventReporrH5StartKey];
});
... ...