Commit e7773a48 authored by 汪洋's avatar 汪洋

Merge branch 'addReferrerId' into 'master'

Phobs给PV事件方法修改参数



See merge request !2
parents 65f95a41 85fb9ab6
......@@ -277,7 +277,7 @@ static NSString *sdkVersion = @"110";
//目前来说,变成了空方法,其主要功能是给当前VC的属性赋值,下个版本优化,挪到UIViewController+Phobos里去
}
- (void)onPageEnd:(NSString *)pageName businessId:(NSString *)businessId referer:(NSString *)refererPageName inTime:(NSString *)time{
- (void)onPageEnd:(NSString *)pageName businessId:(NSString *)businessId referer:(NSString *)refererPageName inTime:(NSString *)time referrerId: (NSString *)referrerId {
if (![self isNonEmpty:pageName]) {
return;
}
......@@ -290,6 +290,7 @@ static NSString *sdkVersion = @"110";
[dict setObject:businessId?:@"" forKey:@"business_id"];
[dict setObject:refererPageName?:@"" forKey:@"referer"];
[dict setObject:@(0) forKey:@"fake"];
[dict setObject:referrerId ? : @"" forKey:@"referrer_id"];
[Phobos track:@"page_view" attributes:dict];
}
......
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