Authored by 郁健超

5.4埋点新增全局 参数 ABType review by 孟顺

... ... @@ -122,6 +122,7 @@
#define JsonKeyEventPARAM @"param" // 操作参数
#define JsonKeyEventINDEX @"indx" // 事件序号
#define JsonKeyEventCID @"C_ID" // 频道ID
#define JsonKeyEventAB_TYPE @"AB_TYPE" // ABTest测试类别
// 错误参数
#define JsonKeyErrorUID @"uid" // 用户id
... ...
... ... @@ -140,6 +140,12 @@ typedef NS_ENUM(NSInteger, YHLogStrategy) {
*/
@property (copy, nonatomic) NSString *cid;
/**
@brief ABTest测试类别
@since 5.4
*/
@property (copy, nonatomic) NSString *ABType;
/**
@brief td的设备id
*/
@property (copy, nonatomic) NSString *tdid;
... ...
... ... @@ -274,6 +274,8 @@
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithDictionary:param];
[params setObject:self.cid?:@"" forKey:JsonKeyEventCID];
[params setObject:self.ABType?:@"" forKey:JsonKeyEventAB_TYPE];
event.param = params;
// 立即发送策略
... ...