Commit 20edd391 authored by 李震's avatar 李震

Merge branch 'yefengming/isPush' into 'master'

修改isPush类型

See merge request !28
parents 674a18e9 e27642d4
......@@ -352,7 +352,7 @@ static NSString *sdkVersion = @"110";
[dict setObject:page.referrerId ? : @"" forKey:@"referrer_id"];
[dict setObject:page.extraParam ? : @"" forKey:@"extra_param"];
[dict setObject:page.referrerTabName ? : @"" forKey:@"referrer_tab_name"];
[dict setObject:@(page.isPush) forKey:@"is_push"];
[dict setObject:page.isPush?:@"" forKey:@"is_push"];
if (page.inTime.length > 0) {
// 页面显示时间为空时不记录页面pv事件
[Phobos track:@"page_view" attributes:dict];
......
......@@ -73,6 +73,6 @@
1: 是推送页面跳转
0: 普通页面跳转
*/
@property (nonatomic, assign) BOOL isPush;
@property (nonatomic, copy) NSString *isPush;
@end
......@@ -181,13 +181,13 @@
return referrerTabName == nil ? @"" : referrerTabName;
}
- (BOOL)isPush {
NSNumber *isPush = objc_getAssociatedObject(self, @selector(isPush));
return isPush == nil ? NO : isPush.boolValue;
- (void)setIsPush:(NSString *)isPush {
objc_setAssociatedObject(self, @selector(isPush), isPush, OBJC_ASSOCIATION_COPY);
}
- (void)setIsPush:(BOOL)isPush {
objc_setAssociatedObject(self, @selector(isPush), @(isPush), OBJC_ASSOCIATION_RETAIN_NONATOMIC);
- (NSString *)isPush {
NSString *isPush = objc_getAssociatedObject(self, @selector(isPush));
return isPush == nil ? @"" : isPush;
}
@end
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