111
This commit is contained in:
parent
6949dea8c9
commit
254f3af3c7
@ -238,6 +238,7 @@ public class LauncherActivity extends AppCompatActivity implements View.OnClickL
|
|||||||
}
|
}
|
||||||
IMLoginModel model = IMLoginManager.get(this).getUserInfo();
|
IMLoginModel model = IMLoginManager.get(this).getUserInfo();
|
||||||
if (model != null) {
|
if (model != null) {
|
||||||
|
IMLoginManager.get(this).upDataUserInfo();
|
||||||
//融云连接服务器
|
//融云连接服务器
|
||||||
RongcloudIMManager.connectIM(this);
|
RongcloudIMManager.connectIM(this);
|
||||||
forwardMainActivity();
|
forwardMainActivity();
|
||||||
|
@ -11,8 +11,14 @@ import androidx.fragment.app.DialogFragment;
|
|||||||
import androidx.fragment.app.FragmentManager;
|
import androidx.fragment.app.FragmentManager;
|
||||||
import androidx.fragment.app.FragmentTransaction;
|
import androidx.fragment.app.FragmentTransaction;
|
||||||
|
|
||||||
|
import com.adjust.sdk.Adjust;
|
||||||
|
import com.adjust.sdk.AdjustEvent;
|
||||||
|
import com.facebook.appevents.AppEventsLogger;
|
||||||
|
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||||
import com.yunbao.common.R;
|
import com.yunbao.common.R;
|
||||||
import com.yunbao.common.event.InstructorOperationEvent;
|
import com.yunbao.common.event.InstructorOperationEvent;
|
||||||
|
import com.yunbao.common.http.CommonHttpUtil;
|
||||||
|
import com.yunbao.common.http.HttpCallback;
|
||||||
import com.yunbao.common.manager.NoviceInstructorManager;
|
import com.yunbao.common.manager.NoviceInstructorManager;
|
||||||
|
|
||||||
import org.greenrobot.eventbus.EventBus;
|
import org.greenrobot.eventbus.EventBus;
|
||||||
@ -82,6 +88,18 @@ public class InstructorOperationDialog extends AbsDialogFragment {
|
|||||||
mRootView.findViewById(R.id.hurry_contact).setOnClickListener(new View.OnClickListener() {
|
mRootView.findViewById(R.id.hurry_contact).setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
|
AdjustEvent adjustEvent1 = new AdjustEvent("82nzkz");
|
||||||
|
Adjust.trackEvent(adjustEvent1);
|
||||||
|
CommonHttpUtil.setAdvertisingChannels("82nzkz", new HttpCallback() {
|
||||||
|
@Override
|
||||||
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
|
if (code == 0) {
|
||||||
|
FirebaseAnalytics.getInstance(mContext).logEvent("FS_director_enter", null);
|
||||||
|
AppEventsLogger.newLogger(mContext).logEvent("FB_director_enter");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
EventBus.getDefault().post(new InstructorOperationEvent());
|
EventBus.getDefault().post(new InstructorOperationEvent());
|
||||||
dismiss();
|
dismiss();
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,7 @@ import android.content.Context;
|
|||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
|
import com.adjust.sdk.Adjust;
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.lzy.okgo.OkGo;
|
import com.lzy.okgo.OkGo;
|
||||||
@ -393,8 +394,9 @@ public class CommonHttpUtil {
|
|||||||
|
|
||||||
//埋点唯一性
|
//埋点唯一性
|
||||||
public static void setAdvertisingChannels(String operation, HttpCallback callback) {
|
public static void setAdvertisingChannels(String operation, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Tx.setAdvertisingChannels&marking=safasf", CommonHttpConsts.GET_USER_BASEINFO)
|
HttpClient.getInstance().get("Tx.setAdvertisingChannels", CommonHttpConsts.GET_USER_BASEINFO)
|
||||||
.params("operation", operation)
|
.params("operation", operation)
|
||||||
|
.params("marking", Adjust.getAdid())
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,14 +1,28 @@
|
|||||||
package com.yunbao.common.manager.imrongcloud;
|
package com.yunbao.common.manager.imrongcloud;
|
||||||
|
|
||||||
|
import android.text.TextUtils;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
|
import com.adjust.sdk.Adjust;
|
||||||
|
import com.adjust.sdk.AdjustEvent;
|
||||||
|
import com.facebook.appevents.AppEventsLogger;
|
||||||
|
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||||
|
import com.google.gson.Gson;
|
||||||
|
import com.yunbao.common.CommonAppContext;
|
||||||
|
import com.yunbao.common.bean.IMLoginModel;
|
||||||
|
import com.yunbao.common.http.CommonHttpUtil;
|
||||||
|
import com.yunbao.common.http.HttpCallback;
|
||||||
|
import com.yunbao.common.utils.ToastUtil;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import io.rong.imkit.IMCenter;
|
import io.rong.imkit.IMCenter;
|
||||||
import io.rong.imkit.MessageInterceptor;
|
import io.rong.imkit.MessageInterceptor;
|
||||||
|
import io.rong.imkit.userinfo.RongUserInfoManager;
|
||||||
import io.rong.imlib.RongIMClient;
|
import io.rong.imlib.RongIMClient;
|
||||||
import io.rong.imlib.model.Conversation;
|
import io.rong.imlib.model.Conversation;
|
||||||
import io.rong.imlib.model.Message;
|
import io.rong.imlib.model.Message;
|
||||||
|
import io.rong.imlib.model.UserInfo;
|
||||||
import io.rong.message.TextMessage;
|
import io.rong.message.TextMessage;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -26,9 +40,36 @@ public class PDMessageInterceptor implements MessageInterceptor {
|
|||||||
Log.e("PDMessageInterceptor", textMessage.getContent());
|
Log.e("PDMessageInterceptor", textMessage.getContent());
|
||||||
//删除消息
|
//删除消息
|
||||||
IMCenter.getInstance().deleteRemoteMessages(Conversation.ConversationType.PRIVATE, message.getTargetId(), messages, null);
|
IMCenter.getInstance().deleteRemoteMessages(Conversation.ConversationType.PRIVATE, message.getTargetId(), messages, null);
|
||||||
IMCenter.getInstance().clearMessagesUnreadStatus(Conversation.ConversationType.PRIVATE, message.getTargetId(), null);
|
IMCenter.getInstance().clearMessagesUnreadStatus(Conversation.ConversationType.PRIVATE, message.getTargetId(), null);
|
||||||
|
|
||||||
// return true;
|
// return true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
//获取用户信息
|
||||||
|
UserInfo userInfo = RongUserInfoManager.getInstance().getUserInfo(message.getTargetId());
|
||||||
|
if (null != userInfo) {
|
||||||
|
if (!TextUtils.isEmpty(userInfo.getExtra())) {
|
||||||
|
IMLoginModel userBean = new Gson().fromJson(userInfo.getExtra(), IMLoginModel.class);
|
||||||
|
//新手指导员
|
||||||
|
if (!TextUtils.isEmpty(userBean.getIsAdmin()) && TextUtils.equals(userBean.getIsAdmin(), "1")) {
|
||||||
|
AdjustEvent adjustEvent1 = new AdjustEvent("82nzkz");
|
||||||
|
Adjust.trackEvent(adjustEvent1);
|
||||||
|
CommonHttpUtil.setAdvertisingChannels("82nzkz", new HttpCallback() {
|
||||||
|
@Override
|
||||||
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
|
if (code == 0) {
|
||||||
|
FirebaseAnalytics.getInstance(CommonAppContext.sInstance.getApplicationContext()).logEvent("FS_director_enter", null);
|
||||||
|
AppEventsLogger.newLogger(CommonAppContext.sInstance.getApplicationContext()).logEvent("FB_director_enter");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
} else {//非指导员
|
||||||
|
|
||||||
|
}
|
||||||
|
Log.e("PDLiveConversation", userInfo.getExtra());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
RongIMClient.getInstance().getHistoryMessages(Conversation.ConversationType.PRIVATE, message.getTargetId(), -1, 10,
|
RongIMClient.getInstance().getHistoryMessages(Conversation.ConversationType.PRIVATE, message.getTargetId(), -1, 10,
|
||||||
new RongIMClient.ResultCallback<List<Message>>() {
|
new RongIMClient.ResultCallback<List<Message>>() {
|
||||||
|
@ -9,9 +9,9 @@ ext {
|
|||||||
]
|
]
|
||||||
manifestPlaceholders = [
|
manifestPlaceholders = [
|
||||||
//正式
|
//正式
|
||||||
// serverHost : "https://napi.yaoulive.com",
|
serverHost : "https://napi.yaoulive.com",
|
||||||
// 測試
|
//測試
|
||||||
serverHost : "https://ceshi.yaoulive.com",
|
// serverHost : "https://ceshi.yaoulive.com",
|
||||||
|
|
||||||
//腾讯地图
|
//腾讯地图
|
||||||
txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB",
|
txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB",
|
||||||
|
@ -171,7 +171,6 @@ public class MyTUIConversationFragment extends Fragment {
|
|||||||
if (bean.getContent().equals("在線客服")) {
|
if (bean.getContent().equals("在線客服")) {
|
||||||
mFirebaseAnalytics.logEvent("FS_customer_service", null);
|
mFirebaseAnalytics.logEvent("FS_customer_service", null);
|
||||||
logger.logEvent("FB_customer_service");
|
logger.logEvent("FB_customer_service");
|
||||||
|
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("ww5z2p");
|
AdjustEvent adjustEvent1 = new AdjustEvent("ww5z2p");
|
||||||
Adjust.trackEvent(adjustEvent1);
|
Adjust.trackEvent(adjustEvent1);
|
||||||
|
|
||||||
|
@ -17,12 +17,18 @@ import androidx.core.content.ContextCompat;
|
|||||||
import androidx.fragment.app.FragmentManager;
|
import androidx.fragment.app.FragmentManager;
|
||||||
import androidx.fragment.app.FragmentTransaction;
|
import androidx.fragment.app.FragmentTransaction;
|
||||||
|
|
||||||
|
import com.adjust.sdk.Adjust;
|
||||||
|
import com.adjust.sdk.AdjustEvent;
|
||||||
import com.blankj.utilcode.util.GsonUtils;
|
import com.blankj.utilcode.util.GsonUtils;
|
||||||
|
import com.facebook.appevents.AppEventsLogger;
|
||||||
|
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||||
import com.yunbao.common.activity.AbsActivity;
|
import com.yunbao.common.activity.AbsActivity;
|
||||||
import com.yunbao.common.activity.SelectImageActivity;
|
import com.yunbao.common.activity.SelectImageActivity;
|
||||||
import com.yunbao.common.bean.IMLoginModel;
|
import com.yunbao.common.bean.IMLoginModel;
|
||||||
import com.yunbao.common.bean.ImageEntity;
|
import com.yunbao.common.bean.ImageEntity;
|
||||||
import com.yunbao.common.bean.NoviceInstructorModel;
|
import com.yunbao.common.bean.NoviceInstructorModel;
|
||||||
|
import com.yunbao.common.http.CommonHttpUtil;
|
||||||
|
import com.yunbao.common.http.HttpCallback;
|
||||||
import com.yunbao.common.manager.IMLoginManager;
|
import com.yunbao.common.manager.IMLoginManager;
|
||||||
import com.yunbao.common.manager.NoviceInstructorManager;
|
import com.yunbao.common.manager.NoviceInstructorManager;
|
||||||
import com.yunbao.common.manager.imrongcloud.MessageIMManager;
|
import com.yunbao.common.manager.imrongcloud.MessageIMManager;
|
||||||
@ -48,6 +54,9 @@ import io.rong.imlib.model.Conversation;
|
|||||||
import io.rong.imlib.model.UserInfo;
|
import io.rong.imlib.model.UserInfo;
|
||||||
import okhttp3.internal.http2.ErrorCode;
|
import okhttp3.internal.http2.ErrorCode;
|
||||||
|
|
||||||
|
import static com.yunbao.common.CommonAppContext.logger;
|
||||||
|
import static com.yunbao.common.CommonAppContext.mFirebaseAnalytics;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 聊天会话界面
|
* 聊天会话界面
|
||||||
*/
|
*/
|
||||||
@ -104,10 +113,23 @@ public class PDLiveConversationActivity extends AbsActivity implements View.OnCl
|
|||||||
if (!TextUtils.isEmpty(userBean.getIs_admin()) && TextUtils.equals(userBean.getIs_admin(), "1")) {
|
if (!TextUtils.isEmpty(userBean.getIs_admin()) && TextUtils.equals(userBean.getIs_admin(), "1")) {
|
||||||
isAdmin = true;
|
isAdmin = true;
|
||||||
imgMore.setVisibility(View.GONE);
|
imgMore.setVisibility(View.GONE);
|
||||||
|
AdjustEvent adjustEvent1 = new AdjustEvent("ww5z2p");
|
||||||
|
Adjust.trackEvent(adjustEvent1);
|
||||||
|
CommonHttpUtil.setAdvertisingChannels("ww5z2p", new HttpCallback() {
|
||||||
|
@Override
|
||||||
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
|
if (code == 0) {
|
||||||
|
FirebaseAnalytics.getInstance(mContext).logEvent("FS_customer_service", null);
|
||||||
|
AppEventsLogger.newLogger(mContext).logEvent("FB_customer_service");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
} else {//非指导员
|
} else {//非指导员
|
||||||
isAdmin = false;
|
isAdmin = false;
|
||||||
imgMore.setVisibility(View.VISIBLE);
|
imgMore.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
|
inputPanel.setAdmin(isAdmin);
|
||||||
Log.e("PDLiveConversation", userInfo.getExtra());
|
Log.e("PDLiveConversation", userInfo.getExtra());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -19,6 +19,7 @@ import com.google.firebase.analytics.FirebaseAnalytics;
|
|||||||
import com.yunbao.common.activity.WebViewActivity;
|
import com.yunbao.common.activity.WebViewActivity;
|
||||||
import com.yunbao.common.glide.ImgLoader;
|
import com.yunbao.common.glide.ImgLoader;
|
||||||
import com.yunbao.common.manager.imrongcloud.MessageIMManager;
|
import com.yunbao.common.manager.imrongcloud.MessageIMManager;
|
||||||
|
import com.yunbao.common.utils.ToastUtil;
|
||||||
import com.yunbao.live.R;
|
import com.yunbao.live.R;
|
||||||
import com.yunbao.live.activity.SystemMessageActivity;
|
import com.yunbao.live.activity.SystemMessageActivity;
|
||||||
import com.yunbao.live.bean.ImUserBean;
|
import com.yunbao.live.bean.ImUserBean;
|
||||||
|
@ -14,9 +14,14 @@ import androidx.fragment.app.DialogFragment;
|
|||||||
import androidx.fragment.app.FragmentManager;
|
import androidx.fragment.app.FragmentManager;
|
||||||
import androidx.fragment.app.FragmentTransaction;
|
import androidx.fragment.app.FragmentTransaction;
|
||||||
|
|
||||||
|
import com.adjust.sdk.Adjust;
|
||||||
|
import com.adjust.sdk.AdjustEvent;
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.facebook.appevents.AppEventsLogger;
|
||||||
|
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||||
import com.yunbao.common.dialog.AbsDialogFragment;
|
import com.yunbao.common.dialog.AbsDialogFragment;
|
||||||
|
import com.yunbao.common.http.CommonHttpUtil;
|
||||||
import com.yunbao.common.http.HttpCallback;
|
import com.yunbao.common.http.HttpCallback;
|
||||||
import com.yunbao.common.manager.IMLoginManager;
|
import com.yunbao.common.manager.IMLoginManager;
|
||||||
import com.yunbao.common.utils.ToastUtil;
|
import com.yunbao.common.utils.ToastUtil;
|
||||||
@ -110,6 +115,17 @@ public class NewUserDialog extends AbsDialogFragment {
|
|||||||
btn_confirm.setOnClickListener(new View.OnClickListener() {
|
btn_confirm.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View view) {
|
public void onClick(View view) {
|
||||||
|
AdjustEvent adjustEvent1 = new AdjustEvent("a50ofs");
|
||||||
|
Adjust.trackEvent(adjustEvent1);
|
||||||
|
CommonHttpUtil.setAdvertisingChannels("a50ofs", new HttpCallback() {
|
||||||
|
@Override
|
||||||
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
|
if (code == 0) {
|
||||||
|
FirebaseAnalytics.getInstance(getContext()).logEvent("FS_newbie_reward", null);
|
||||||
|
AppEventsLogger.newLogger(getContext()).logEvent("FB_newbie_reward");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
EventBus.getDefault().post("showBanner");
|
EventBus.getDefault().post("showBanner");
|
||||||
EventBus.getDefault().post("svga_new_user_gif");
|
EventBus.getDefault().post("svga_new_user_gif");
|
||||||
IMLoginManager.get(mContext).setNewUserGif(true);
|
IMLoginManager.get(mContext).setNewUserGif(true);
|
||||||
|
@ -22,8 +22,12 @@ import android.widget.PopupWindow;
|
|||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
|
|
||||||
|
import com.adjust.sdk.Adjust;
|
||||||
|
import com.adjust.sdk.AdjustEvent;
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.facebook.appevents.AppEventsLogger;
|
||||||
|
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||||
import com.ms.banner.Banner;
|
import com.ms.banner.Banner;
|
||||||
import com.ms.banner.BannerConfig;
|
import com.ms.banner.BannerConfig;
|
||||||
import com.ms.banner.holder.BannerViewHolder;
|
import com.ms.banner.holder.BannerViewHolder;
|
||||||
@ -35,6 +39,7 @@ import com.yunbao.common.bean.LevelBean;
|
|||||||
import com.yunbao.common.bean.LiveGiftBean;
|
import com.yunbao.common.bean.LiveGiftBean;
|
||||||
import com.yunbao.common.bean.UserBean;
|
import com.yunbao.common.bean.UserBean;
|
||||||
import com.yunbao.common.glide.ImgLoader;
|
import com.yunbao.common.glide.ImgLoader;
|
||||||
|
import com.yunbao.common.http.CommonHttpUtil;
|
||||||
import com.yunbao.common.http.HttpCallback;
|
import com.yunbao.common.http.HttpCallback;
|
||||||
import com.yunbao.common.http.HttpClient;
|
import com.yunbao.common.http.HttpClient;
|
||||||
import com.yunbao.common.manager.IMLoginManager;
|
import com.yunbao.common.manager.IMLoginManager;
|
||||||
@ -136,6 +141,17 @@ public class LiveLinkMicPresenter implements View.OnClickListener {
|
|||||||
if ("showBanner".equals(str)) {
|
if ("showBanner".equals(str)) {
|
||||||
showBanner3();
|
showBanner3();
|
||||||
} else if ("stop_svga_new_user_double".equals(str) && mBannerList3.size() > 3) {
|
} else if ("stop_svga_new_user_double".equals(str) && mBannerList3.size() > 3) {
|
||||||
|
AdjustEvent adjustEvent1 = new AdjustEvent("80lzdi");
|
||||||
|
Adjust.trackEvent(adjustEvent1);
|
||||||
|
CommonHttpUtil.setAdvertisingChannels("80lzdi", new HttpCallback() {
|
||||||
|
@Override
|
||||||
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
|
if (code == 0) {
|
||||||
|
FirebaseAnalytics.getInstance(mContext).logEvent("FS_mission_3", null);
|
||||||
|
AppEventsLogger.newLogger(mContext).logEvent("FB_mission_3");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
mBannerList3.get(2).setLink("1");
|
mBannerList3.get(2).setLink("1");
|
||||||
mBanner3.update(mBannerList3);
|
mBanner3.update(mBannerList3);
|
||||||
if (mBannerList3.get(0).getLink().equals("1")) {
|
if (mBannerList3.get(0).getLink().equals("1")) {
|
||||||
@ -147,6 +163,17 @@ public class LiveLinkMicPresenter implements View.OnClickListener {
|
|||||||
}
|
}
|
||||||
} else if ("stop_svga_new_user_follow".equals(str)&& mBannerList3.size() > 2) {
|
} else if ("stop_svga_new_user_follow".equals(str)&& mBannerList3.size() > 2) {
|
||||||
mBannerList3.get(1).setLink("1");
|
mBannerList3.get(1).setLink("1");
|
||||||
|
AdjustEvent adjustEvent1 = new AdjustEvent("f084wh");
|
||||||
|
Adjust.trackEvent(adjustEvent1);
|
||||||
|
CommonHttpUtil.setAdvertisingChannels("f084wh", new HttpCallback() {
|
||||||
|
@Override
|
||||||
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
|
if (code == 0) {
|
||||||
|
FirebaseAnalytics.getInstance(mContext).logEvent("FS_mission_2", null);
|
||||||
|
AppEventsLogger.newLogger(mContext).logEvent("FB_mission_2");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
mBanner3.update(mBannerList3);
|
mBanner3.update(mBannerList3);
|
||||||
if (mBannerList3.get(0).getLink().equals("1")) {
|
if (mBannerList3.get(0).getLink().equals("1")) {
|
||||||
if (mBannerList3.get(1).getLink().equals("1")) {
|
if (mBannerList3.get(1).getLink().equals("1")) {
|
||||||
@ -156,6 +183,17 @@ public class LiveLinkMicPresenter implements View.OnClickListener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if ("stop_new_user_gif".equals(str)&& mBannerList3.size() > 1) {
|
} else if ("stop_new_user_gif".equals(str)&& mBannerList3.size() > 1) {
|
||||||
|
AdjustEvent adjustEvent1 = new AdjustEvent("aqqz70");
|
||||||
|
Adjust.trackEvent(adjustEvent1);
|
||||||
|
CommonHttpUtil.setAdvertisingChannels("aqqz70", new HttpCallback() {
|
||||||
|
@Override
|
||||||
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
|
if (code == 0) {
|
||||||
|
FirebaseAnalytics.getInstance(mContext).logEvent("FS_mission_1", null);
|
||||||
|
AppEventsLogger.newLogger(mContext).logEvent("FB_mission_1");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
IMLoginManager.get(mContext).setNewUserGif(false);
|
IMLoginManager.get(mContext).setNewUserGif(false);
|
||||||
mBannerList3.get(0).setLink("1");
|
mBannerList3.get(0).setLink("1");
|
||||||
mBanner3.update(mBannerList3);
|
mBanner3.update(mBannerList3);
|
||||||
@ -313,6 +351,7 @@ public class LiveLinkMicPresenter implements View.OnClickListener {
|
|||||||
|
|
||||||
if (IMLoginManager.get(mContext).isisNewUserOne() == false) {
|
if (IMLoginManager.get(mContext).isisNewUserOne() == false) {
|
||||||
if (obj.getString("sendgift").equals("0")) {
|
if (obj.getString("sendgift").equals("0")) {
|
||||||
|
IMLoginManager.get(mContext).setNewUserGif(true);
|
||||||
EventBus.getDefault().post("svga_new_user_gif");
|
EventBus.getDefault().post("svga_new_user_gif");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,12 @@ import android.widget.LinearLayout;
|
|||||||
|
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
|
|
||||||
|
import com.adjust.sdk.Adjust;
|
||||||
|
import com.adjust.sdk.AdjustEvent;
|
||||||
|
import com.facebook.appevents.AppEventsLogger;
|
||||||
|
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||||
|
import com.yunbao.common.http.CommonHttpUtil;
|
||||||
|
import com.yunbao.common.http.HttpCallback;
|
||||||
import com.yunbao.common.manager.NoviceInstructorManager;
|
import com.yunbao.common.manager.NoviceInstructorManager;
|
||||||
import com.yunbao.common.utils.FileUtil;
|
import com.yunbao.common.utils.FileUtil;
|
||||||
import com.yunbao.common.utils.TimeUtils;
|
import com.yunbao.common.utils.TimeUtils;
|
||||||
@ -47,6 +53,11 @@ public class InputPanelViewHolder extends LinearLayout implements View.OnClickLi
|
|||||||
private LinearLayout pluginList;
|
private LinearLayout pluginList;
|
||||||
//接口返回预置信息
|
//接口返回预置信息
|
||||||
private String presetInformation = "";
|
private String presetInformation = "";
|
||||||
|
private boolean isAdmin = false;
|
||||||
|
|
||||||
|
public void setAdmin(boolean admin) {
|
||||||
|
isAdmin = admin;
|
||||||
|
}
|
||||||
|
|
||||||
public InputPanelViewHolder setPresetInformation(String presetInformation) {
|
public InputPanelViewHolder setPresetInformation(String presetInformation) {
|
||||||
this.presetInformation = presetInformation;
|
this.presetInformation = presetInformation;
|
||||||
@ -164,6 +175,24 @@ public class InputPanelViewHolder extends LinearLayout implements View.OnClickLi
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(Message message) {
|
public void onSuccess(Message message) {
|
||||||
|
if(isAdmin){
|
||||||
|
AdjustEvent adjustEvent1 = new AdjustEvent("2kjbwx");
|
||||||
|
Adjust.trackEvent(adjustEvent1);
|
||||||
|
CommonHttpUtil.setAdvertisingChannels("2kjbwx", new HttpCallback() {
|
||||||
|
@Override
|
||||||
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
|
if (code == 0) {
|
||||||
|
FirebaseAnalytics.getInstance(getContext()).logEvent("FS_director_first_chat", null);
|
||||||
|
AppEventsLogger.newLogger(getContext()).logEvent("FB_director_first_chat");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
AdjustEvent adjustEvent2 = new AdjustEvent("g9lzss");
|
||||||
|
Adjust.trackEvent(adjustEvent2);
|
||||||
|
FirebaseAnalytics.getInstance(getContext()).logEvent("FS_director_chat", null);
|
||||||
|
AppEventsLogger.newLogger(getContext()).logEvent("FB_director_chat");
|
||||||
|
}
|
||||||
|
|
||||||
IMCenter.getInstance().clearTextMessageDraft(Conversation.ConversationType.PRIVATE, targetId, null);
|
IMCenter.getInstance().clearTextMessageDraft(Conversation.ConversationType.PRIVATE, targetId, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -47,6 +47,6 @@
|
|||||||
<WebView
|
<WebView
|
||||||
android:id="@+id/rlWebview"
|
android:id="@+id/rlWebview"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"/>
|
android:layout_height="match_parent"/>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
@ -19,11 +19,13 @@ import android.widget.TextView;
|
|||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.blankj.utilcode.util.DeviceUtils;
|
import com.blankj.utilcode.util.DeviceUtils;
|
||||||
|
import com.blankj.utilcode.util.GsonUtils;
|
||||||
import com.sahooz.library.Country;
|
import com.sahooz.library.Country;
|
||||||
import com.sahooz.library.CountryPicker;
|
import com.sahooz.library.CountryPicker;
|
||||||
import com.sahooz.library.OnPick;
|
import com.sahooz.library.OnPick;
|
||||||
import com.yunbao.common.CommonAppConfig;
|
import com.yunbao.common.CommonAppConfig;
|
||||||
import com.yunbao.common.activity.AbsActivity;
|
import com.yunbao.common.activity.AbsActivity;
|
||||||
|
import com.yunbao.common.bean.IMLoginModel;
|
||||||
import com.yunbao.common.bean.UserBean;
|
import com.yunbao.common.bean.UserBean;
|
||||||
import com.yunbao.common.http.HttpCallback;
|
import com.yunbao.common.http.HttpCallback;
|
||||||
import com.yunbao.common.interfaces.CommonCallback;
|
import com.yunbao.common.interfaces.CommonCallback;
|
||||||
@ -343,6 +345,7 @@ public class FindPwdActivity extends AbsActivity {
|
|||||||
JSONObject obj = JSON.parseObject(info[0]);
|
JSONObject obj = JSON.parseObject(info[0]);
|
||||||
String uid = obj.getString("id");
|
String uid = obj.getString("id");
|
||||||
String token = obj.getString("token");
|
String token = obj.getString("token");
|
||||||
|
IMLoginModel model = GsonUtils.fromJson(info[0], IMLoginModel.class);
|
||||||
CommonAppConfig.getInstance().setLoginInfo(uid, token, true);
|
CommonAppConfig.getInstance().setLoginInfo(uid, token, true);
|
||||||
getBaseUserInfo();
|
getBaseUserInfo();
|
||||||
} else {
|
} else {
|
||||||
|
@ -13,12 +13,17 @@ import androidx.fragment.app.FragmentTransaction;
|
|||||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
|
import com.adjust.sdk.Adjust;
|
||||||
|
import com.adjust.sdk.AdjustEvent;
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
|
import com.facebook.appevents.AppEventsLogger;
|
||||||
|
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||||
import com.yunbao.common.activity.AbsActivity;
|
import com.yunbao.common.activity.AbsActivity;
|
||||||
import com.yunbao.common.bean.ImUserInfoModel;
|
import com.yunbao.common.bean.ImUserInfoModel;
|
||||||
import com.yunbao.common.custom.TabButtonGroup;
|
import com.yunbao.common.custom.TabButtonGroup;
|
||||||
import com.yunbao.common.event.MessageIMEvent;
|
import com.yunbao.common.event.MessageIMEvent;
|
||||||
import com.yunbao.common.event.UpdateTablePointMe;
|
import com.yunbao.common.event.UpdateTablePointMe;
|
||||||
|
import com.yunbao.common.http.CommonHttpUtil;
|
||||||
import com.yunbao.common.http.HttpCallback;
|
import com.yunbao.common.http.HttpCallback;
|
||||||
import com.yunbao.common.manager.IMLoginManager;
|
import com.yunbao.common.manager.IMLoginManager;
|
||||||
import com.yunbao.common.manager.imrongcloud.MessageIMManager;
|
import com.yunbao.common.manager.imrongcloud.MessageIMManager;
|
||||||
@ -83,7 +88,17 @@ public class PDLiveConversationListActivity extends AbsActivity {
|
|||||||
container = findViewById(R.id.container);
|
container = findViewById(R.id.container);
|
||||||
redPoint = findViewById(R.id.v_table_redpoint);
|
redPoint = findViewById(R.id.v_table_redpoint);
|
||||||
redpointMe = findViewById(R.id.v_table_redpoint_me);
|
redpointMe = findViewById(R.id.v_table_redpoint_me);
|
||||||
|
AdjustEvent adjustEvent2 = new AdjustEvent("ykpmj8");
|
||||||
|
Adjust.trackEvent(adjustEvent2);
|
||||||
|
CommonHttpUtil.setAdvertisingChannels("ykpmj8", new HttpCallback() {
|
||||||
|
@Override
|
||||||
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
|
if (code == 0) {
|
||||||
|
FirebaseAnalytics.getInstance(PDLiveConversationListActivity.this).logEvent("FS_director_message_box", null);
|
||||||
|
AppEventsLogger.newLogger(PDLiveConversationListActivity.this).logEvent("FB_director_message_box");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
mTabButtonGroup.setCurPosition(2);
|
mTabButtonGroup.setCurPosition(2);
|
||||||
findViewById(R.id.btn_start).setOnClickListener(v -> {
|
findViewById(R.id.btn_start).setOnClickListener(v -> {
|
||||||
//防止重新加载多个
|
//防止重新加载多个
|
||||||
|
@ -21,6 +21,7 @@ import com.yunbao.common.activity.WebViewActivity;
|
|||||||
import com.yunbao.common.bean.ImUserInfoModel;
|
import com.yunbao.common.bean.ImUserInfoModel;
|
||||||
import com.yunbao.common.glide.ImgLoader;
|
import com.yunbao.common.glide.ImgLoader;
|
||||||
import com.yunbao.common.manager.imrongcloud.MessageIMManager;
|
import com.yunbao.common.manager.imrongcloud.MessageIMManager;
|
||||||
|
import com.yunbao.common.utils.ToastUtil;
|
||||||
import com.yunbao.live.activity.SystemMessageActivity;
|
import com.yunbao.live.activity.SystemMessageActivity;
|
||||||
import com.yunbao.live.bean.ImUserBean;
|
import com.yunbao.live.bean.ImUserBean;
|
||||||
import com.yunbao.main.R;
|
import com.yunbao.main.R;
|
||||||
@ -88,12 +89,12 @@ public class SystemMessageAdapter extends RecyclerView.Adapter {
|
|||||||
messageViewHolder.setViewHolderOnClickListener((view, model1) -> {
|
messageViewHolder.setViewHolderOnClickListener((view, model1) -> {
|
||||||
mPosition = position;
|
mPosition = position;
|
||||||
netHandler.post(updataRunable);
|
netHandler.post(updataRunable);
|
||||||
if (model1.getContent().equals("在線客服")) {
|
if (model1.getTitle().equals("在線客服")) {
|
||||||
FirebaseAnalytics.getInstance(mContext).logEvent("FS_customer_service", null);
|
FirebaseAnalytics.getInstance(mContext).logEvent("FS_customer_service", null);
|
||||||
AppEventsLogger.newLogger(mContext).logEvent("FB_customer_service");
|
AppEventsLogger.newLogger(mContext).logEvent("FB_customer_service");
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("ww5z2p");
|
AdjustEvent adjustEvent1 = new AdjustEvent("ww5z2p");
|
||||||
Adjust.trackEvent(adjustEvent1);
|
Adjust.trackEvent(adjustEvent1);
|
||||||
} else if (model1.getContent().equals("新手指導員")) {
|
} else if (model1.getTitle().equals("新手指導員")) {
|
||||||
FirebaseAnalytics.getInstance(mContext).logEvent("FS_guide", null);
|
FirebaseAnalytics.getInstance(mContext).logEvent("FS_guide", null);
|
||||||
AppEventsLogger.newLogger(mContext).logEvent("FB_guide", null);
|
AppEventsLogger.newLogger(mContext).logEvent("FB_guide", null);
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("m0nfpn");
|
AdjustEvent adjustEvent1 = new AdjustEvent("m0nfpn");
|
||||||
|
Loading…
Reference in New Issue
Block a user