Commit bd7dc51e authored by 李震's avatar 李震

添加grep_type

parent 48ca55e9
......@@ -84,6 +84,11 @@ typedef NS_ENUM (NSInteger, PhobosSigningType) {
*/
@property (copy, nonatomic) NSString *serverAPI;
/**
灰度组, since 7.7.65
*/
@property (nonatomic, copy) NSString *greyType;
/**
包的类型:APPSTORE、RELEASE、DEBUG
*/
......
......@@ -58,6 +58,7 @@ static NSString *sdkVersion = @"110";
_netStatus = @"";
_currentCityId = @"";
_serverAPI = @"";
_greyType = @"";
_userType = [[NSMutableDictionary alloc] initWithCapacity:0];
_appVersion = [PhobosUtil getAppVersion];
_APIArray = [NSMutableArray array];
......@@ -354,7 +355,6 @@ static NSString *sdkVersion = @"110";
[dict setObject:page.extraParam ? : @"" forKey:@"extra_param"];
[dict setObject:page.referrerTabName ? : @"" forKey:@"referrer_tab_name"];
[dict setObject:page.isPush.intValue ? @(page.isPush.intValue) : @(0) forKey:@"is_push"];
[dict setObject:page.greyType ?: @"" forKey:@"grey_type"];
if (page.inTime.length > 0) {
// 页面显示时间为空时不记录页面pv事件
[Phobos track:@"page_view" attributes:dict];
......@@ -425,6 +425,7 @@ static NSString *sdkVersion = @"110";
[dict setObject:currentTime forKey:@"create_at"];
[dict setObject:attributes forKey:@"params"];
[dict setObject:_sessionId forKey:@"app_session_id"];
[dict setObject:_greyType forKey:@"grep_type"];
}
@catch (NSException *exception) {
phobosLog(exception);
......
......@@ -75,9 +75,4 @@
*/
@property (nonatomic, copy) NSString *isPush;
/**
灰度组, since 7.7.65
*/
@property (nonatomic, copy) NSString *greyType;
@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