From bbb1dc628dcd67ec2bd7595045bdfd1390f54bc2 Mon Sep 17 00:00:00 2001 From: 18142669586 <1669783059@qq.com> Date: Tue, 6 Sep 2022 10:18:23 +0800 Subject: [PATCH] 111 --- .../live/presenter/LiveLinkMicPresenter.java | 33 +++++++++++++++++++ .../live/views/PortraitLiveManager.java | 14 ++++++++ 2 files changed, 47 insertions(+) diff --git a/live/src/main/java/com/yunbao/live/presenter/LiveLinkMicPresenter.java b/live/src/main/java/com/yunbao/live/presenter/LiveLinkMicPresenter.java index 50870f32f..2c0eb34b0 100644 --- a/live/src/main/java/com/yunbao/live/presenter/LiveLinkMicPresenter.java +++ b/live/src/main/java/com/yunbao/live/presenter/LiveLinkMicPresenter.java @@ -177,6 +177,17 @@ public class LiveLinkMicPresenter implements View.OnClickListener { } } }); + AdjustEvent adjustEvent2 = new AdjustEvent("6va52i"); + Adjust.trackEvent(adjustEvent2); + CommonHttpUtil.setAdvertisingChannels("6va52i", new HttpCallback() { + @Override + public void onSuccess(int code, String msg, String[] info) { + if (code == 0) { + FirebaseAnalytics.getInstance(mContext).logEvent("FS_mission_either", null); + AppEventsLogger.newLogger(mContext).logEvent("FB_mission_either"); + } + } + }); publicToast(mContext); } else if ("stop_svga_new_user_follow1".equals(str)) { AdjustEvent adjustEvent1 = new AdjustEvent("f084wh"); @@ -190,6 +201,17 @@ public class LiveLinkMicPresenter implements View.OnClickListener { } } }); + AdjustEvent adjustEvent2 = new AdjustEvent("6va52i"); + Adjust.trackEvent(adjustEvent2); + CommonHttpUtil.setAdvertisingChannels("6va52i", new HttpCallback() { + @Override + public void onSuccess(int code, String msg, String[] info) { + if (code == 0) { + FirebaseAnalytics.getInstance(mContext).logEvent("FS_mission_either", null); + AppEventsLogger.newLogger(mContext).logEvent("FB_mission_either"); + } + } + }); publicToast(mContext); } else if ("stop_new_user_gif1".equals(str)) { AdjustEvent adjustEvent1 = new AdjustEvent("aqqz70"); @@ -203,6 +225,17 @@ public class LiveLinkMicPresenter implements View.OnClickListener { } } }); + AdjustEvent adjustEvent2 = new AdjustEvent("6va52i"); + Adjust.trackEvent(adjustEvent2); + CommonHttpUtil.setAdvertisingChannels("6va52i", new HttpCallback() { + @Override + public void onSuccess(int code, String msg, String[] info) { + if (code == 0) { + FirebaseAnalytics.getInstance(mContext).logEvent("FS_mission_either", null); + AppEventsLogger.newLogger(mContext).logEvent("FB_mission_either"); + } + } + }); publicToast(mContext); } } diff --git a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java index 54ea19439..d43ba3cdb 100644 --- a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java +++ b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java @@ -25,6 +25,8 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.blankj.utilcode.util.GsonUtils; +import com.facebook.appevents.AppEventsLogger; +import com.google.firebase.analytics.FirebaseAnalytics; import com.tencent.imsdk.v2.V2TIMCallback; import com.tencent.imsdk.v2.V2TIMManager; import com.yunbao.common.CommonAppConfig; @@ -1047,6 +1049,18 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe mFirebaseAnalytics.logEvent("FS_enterroom", null); logger.logEvent("FB_enterroom"); + AdjustEvent adjustEvent2 = new AdjustEvent("unutgg"); + Adjust.trackEvent(adjustEvent2); + CommonHttpUtil.setAdvertisingChannels("unutgg", new HttpCallback() { + @Override + public void onSuccess(int code, String msg, String[] info) { + if (code == 0) { + mFirebaseAnalytics.logEvent("FS_first_Enterroom", null); + AppEventsLogger.newLogger(mContext).logEvent("FB_first_Enterroom"); + } + } + }); + //观看1分钟 if (obj.getIntValue("see_time") >= 60) { AdjustEvent good_user = new AdjustEvent("7zxuxz");