Commit 49ed583a authored by 李震's avatar 李震

页面显示时间为空时不记录页面pv事件

parent 907a5fc4
...@@ -321,9 +321,11 @@ static NSString *sdkVersion = @"110"; ...@@ -321,9 +321,11 @@ static NSString *sdkVersion = @"110";
[dict setObject:@(0) forKey:@"fake"]; [dict setObject:@(0) forKey:@"fake"];
[dict setObject:page.referrerId ? : @"" forKey:@"referrer_id"]; [dict setObject:page.referrerId ? : @"" forKey:@"referrer_id"];
[dict setObject:page.extraParam ? : @"" forKey:@"extra_param"]; [dict setObject:page.extraParam ? : @"" forKey:@"extra_param"];
NSAssert(page.inTime.length > 0, @"页面显示时间不能为空!"); if (page.inTime.length > 0) {
// 页面显示时间为空时不记录页面pv事件
[Phobos track:@"page_view" attributes:dict]; [Phobos track:@"page_view" attributes:dict];
} }
}
@catch (NSException *exception) { @catch (NSException *exception) {
phobosLog(exception); phobosLog(exception);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment