5.4埋点新增全局 参数 ABType review by 孟顺
Showing
3 changed files
with
9 additions
and
0 deletions
@@ -122,6 +122,7 @@ | @@ -122,6 +122,7 @@ | ||
122 | #define JsonKeyEventPARAM @"param" // 操作参数 | 122 | #define JsonKeyEventPARAM @"param" // 操作参数 |
123 | #define JsonKeyEventINDEX @"indx" // 事件序号 | 123 | #define JsonKeyEventINDEX @"indx" // 事件序号 |
124 | #define JsonKeyEventCID @"C_ID" // 频道ID | 124 | #define JsonKeyEventCID @"C_ID" // 频道ID |
125 | +#define JsonKeyEventAB_TYPE @"AB_TYPE" // ABTest测试类别 | ||
125 | 126 | ||
126 | // 错误参数 | 127 | // 错误参数 |
127 | #define JsonKeyErrorUID @"uid" // 用户id | 128 | #define JsonKeyErrorUID @"uid" // 用户id |
@@ -140,6 +140,12 @@ typedef NS_ENUM(NSInteger, YHLogStrategy) { | @@ -140,6 +140,12 @@ typedef NS_ENUM(NSInteger, YHLogStrategy) { | ||
140 | */ | 140 | */ |
141 | @property (copy, nonatomic) NSString *cid; | 141 | @property (copy, nonatomic) NSString *cid; |
142 | /** | 142 | /** |
143 | + @brief ABTest测试类别 | ||
144 | + | ||
145 | + @since 5.4 | ||
146 | + */ | ||
147 | +@property (copy, nonatomic) NSString *ABType; | ||
148 | +/** | ||
143 | @brief td的设备id | 149 | @brief td的设备id |
144 | */ | 150 | */ |
145 | @property (copy, nonatomic) NSString *tdid; | 151 | @property (copy, nonatomic) NSString *tdid; |
@@ -274,6 +274,8 @@ | @@ -274,6 +274,8 @@ | ||
274 | 274 | ||
275 | NSMutableDictionary *params = [NSMutableDictionary dictionaryWithDictionary:param]; | 275 | NSMutableDictionary *params = [NSMutableDictionary dictionaryWithDictionary:param]; |
276 | [params setObject:self.cid?:@"" forKey:JsonKeyEventCID]; | 276 | [params setObject:self.cid?:@"" forKey:JsonKeyEventCID]; |
277 | + [params setObject:self.ABType?:@"" forKey:JsonKeyEventAB_TYPE]; | ||
278 | + | ||
277 | event.param = params; | 279 | event.param = params; |
278 | 280 | ||
279 | // 立即发送策略 | 281 | // 立即发送策略 |
-
Please register or login to post a comment