Commit d69656b5 authored by 李震's avatar 李震

Merge branch 'lz/gmPhobos' into 'master'

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

See merge request !20
parents 352e5740 49ed583a
......@@ -321,8 +321,10 @@ static NSString *sdkVersion = @"110";
[dict setObject:@(0) forKey:@"fake"];
[dict setObject:page.referrerId ? : @"" forKey:@"referrer_id"];
[dict setObject:page.extraParam ? : @"" forKey:@"extra_param"];
NSAssert(page.inTime.length > 0, @"页面显示时间不能为空!");
[Phobos track:@"page_view" attributes:dict];
if (page.inTime.length > 0) {
// 页面显示时间为空时不记录页面pv事件
[Phobos track:@"page_view" attributes:dict];
}
}
@catch (NSException *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