fix:调整埋点问题:eventLable为空被拦截问题

This commit is contained in:
Max
2023-12-28 11:06:56 +08:00
parent 32ef74df3a
commit ac8dc50955

View File

@@ -1,6 +1,7 @@
package com.nnbc123.core.statistic;
import android.content.Context;
import android.text.TextUtils;
import androidx.annotation.Keep;
@@ -28,8 +29,10 @@ public class StatisticModel {
void onEvent(Context context, String eventId, String eventLabel, Map<String, String> arguments) {
if (arguments != null) {
MobclickAgent.onEvent(context, eventId, arguments);
} else {
} else if (!TextUtils.isEmpty(eventLabel)) {
MobclickAgent.onEvent(context, eventId, eventLabel);
} else {
MobclickAgent.onEvent(context, eventId);
}
}