Commit 7afe7999 authored by 井庆林's avatar 井庆林

辨别测试数据字段埋点

parent c4026dea
...@@ -10,6 +10,13 @@ ...@@ -10,6 +10,13 @@
#import "PhobosPVProtocol.h" #import "PhobosPVProtocol.h"
#import <CoreLocation/CLLocation.h> #import <CoreLocation/CLLocation.h>
typedef NS_ENUM (NSInteger, PhobosSigningType) {
PhobosSigningTypeUndefined = 0,
PhobosSigningTypeAppStore,
PhobosSigningTypeRelease,
PhobosSigningTypeDebug
};
@interface Phobos : NSObject @interface Phobos : NSObject
/** /**
...@@ -77,6 +84,11 @@ ...@@ -77,6 +84,11 @@
*/ */
@property (copy, nonatomic) NSString *serverAPI; @property (copy, nonatomic) NSString *serverAPI;
/**
包的类型:APPSTORE、RELEASE、DEBUG
*/
@property (nonatomic, assign) PhobosSigningType signingType;
/** /**
从主项目获取当前显示的controller 从主项目获取当前显示的controller
*/ */
......
...@@ -61,6 +61,7 @@ static NSString *sdkVersion = @"110"; ...@@ -61,6 +61,7 @@ static NSString *sdkVersion = @"110";
_userType = [[NSMutableDictionary alloc] initWithCapacity:0]; _userType = [[NSMutableDictionary alloc] initWithCapacity:0];
_appVersion = [PhobosUtil getAppVersion]; _appVersion = [PhobosUtil getAppVersion];
_APIArray = [NSMutableArray array]; _APIArray = [NSMutableArray array];
_signingType = PhobosSigningTypeUndefined;
[self setupNotification]; [self setupNotification];
[self handleSessionStart]; [self handleSessionStart];
[self synchronizePhobosKey]; [self synchronizePhobosKey];
...@@ -411,6 +412,10 @@ static NSString *sdkVersion = @"110"; ...@@ -411,6 +412,10 @@ static NSString *sdkVersion = @"110";
_userType,@"user_type", _userType,@"user_type",
self.currentCityId,@"current_city_id", self.currentCityId,@"current_city_id",
@(_serialId++), @"serial_id",nil]; @(_serialId++), @"serial_id",nil];
if (_signingType == PhobosSigningTypeDebug || _signingType == PhobosSigningTypeRelease) {
[dict setValue:@(0) forKey:@"is_release"];
}
[dict setObject:eventId forKey:@"type"]; [dict setObject:eventId forKey:@"type"];
[dict setObject:appParams forKey:@"app"]; [dict setObject:appParams forKey:@"app"];
[dict setObject:sdkVersion forKey:@"version"]; [dict setObject:sdkVersion forKey:@"version"];
......
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