This commit is contained in:
chenjuntao
2018-10-23 18:33:25 +08:00
parent 02d61989fd
commit 9118119901
37 changed files with 275 additions and 138 deletions

View File

@ -115,17 +115,7 @@ public class DataUtils {
// if (CommonDebug.IS_DEBUG && (kv == null || kv.length % 2 != 0)) {
// throw new IllegalStateException("onEvent kv 必须不为空且数量为偶数");
// }
Properties prop = new Properties();
for (int i = 0; i < kv.length; i++) {
if (i % 2 != 0) {
String key = kv[i - 1];
String value = kv[i];
if (!TextUtils.isEmpty(key) && !TextUtils.isEmpty(value)) {
prop.setProperty(key, value);
}
}
}
StatService.trackCustomKVEvent(context, eventId, prop);
MtaHelper.onEvent(eventId, kv);
}
public static void onEvent(Context var0, String var1, String var2) {