Commit ac50d2e0 authored by 周亮's avatar 周亮

修改is_first赋值位置

parent a816925a
......@@ -286,7 +286,9 @@ static dispatch_semaphore_t _phobos_semaphore;
[dict setObject:PhobosSafeString([PhobosUtil currentMMTime]) forKey:@"out_time_millis"];
//首次进来为1,再次进入的时候都为0
[dict setObject:page.isFirst ? @(0):@(1) forKey:@"is_first"];
if (!page.isFirst) {
page.isFirst = YES;
}
if (page.inTime.length > 0) {
// 页面显示时间为空时不记录页面pv事件
[NewPhobos track:@"page_view" attributes:dict];
......
......@@ -364,7 +364,9 @@ static OldPhobos *sharedClient = nil;
[dict setObject:PhobosSafeString([PhobosUtil currentMMTime]) forKey:@"out_time_millis"];
//首次进来为1,再次进入的时候都为0
[dict setObject:page.isFirst ? @(0):@(1) forKey:@"is_first"];
if (!page.isFirst) {
page.isFirst = YES;
}
if (page.inTime.length > 0) {
// 页面显示时间为空时不记录页面pv事件
[OldPhobos track:@"page_view" attributes:dict];
......
......@@ -136,10 +136,7 @@ static BOOL isGray = NO;
*/
- (void)onPVEnd:(UIResponder<PhobosPVProtocol> *)page {
[_rePhobos onPVEnd:page];
[_oldPhobos onPVEnd:page];
if (!page.isFirst) {
page.isFirst = YES;
}
[_oldPhobos onPVEnd:page];
}
/**
......
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