Commit c0ec284f authored by 汪洋's avatar 汪洋

优化referer与refererid获取

parent a8d09ef3
......@@ -35,8 +35,6 @@
UIViewController *controller = navigationPool[refererIndex];
objc_setAssociatedObject(self, @selector(referer), controller.pageName, OBJC_ASSOCIATION_COPY);
}
} else {
objc_setAssociatedObject(self, @selector(referer), @"", OBJC_ASSOCIATION_COPY);
}
}
......@@ -108,7 +106,7 @@
- (NSString *)referrerId {
NSString *referrerId = objc_getAssociatedObject(self, @selector(referrerId));
return referrerId;
return referrerId == nil ? @"" : referrerId;
}
- (BOOL)needLogPV {
......
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