fix:调整埋点问题:eventLable为空被拦截问题
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user