Commit e27642d4 authored by 叶凤鸣's avatar 叶凤鸣

修改isPush类型

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