Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -333,6 +333,7 @@ public class LiveAudienceActivity extends LiveActivity {
|
||||
NewUserDialog fragment1 = new NewUserDialog();
|
||||
fragment1.show(((LiveActivity) mContext).getSupportFragmentManager(), "NewUserDialog");
|
||||
}
|
||||
|
||||
if (timeIndex == CommonAppConfig.getInstance().alert_time) {
|
||||
if (mLiveRoomViewHolder.isAttention == 0) {
|
||||
BlowkissDialog fragment1 = new BlowkissDialog();
|
||||
@@ -478,7 +479,20 @@ public class LiveAudienceActivity extends LiveActivity {
|
||||
mFirebaseAnalytics.logEvent("FS_enterroom", null);
|
||||
logger.logEvent("FB_enterroom");
|
||||
|
||||
//观看十分钟并且有充值(优质用户)
|
||||
//观看1分钟
|
||||
if (obj.getIntValue("see_time") >= 60){
|
||||
AdjustEvent good_user = new AdjustEvent("7zxuxz");
|
||||
Adjust.trackEvent(good_user);
|
||||
CommonHttpUtil.setAdvertisingChannels("7zxuxz", new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
if (code == 0) {
|
||||
mFirebaseAnalytics.logEvent("FS_enter_app_1min", null);
|
||||
logger.logEvent("FB_enter_app_1min", null);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
if (obj.getIntValue("see_time") >= 600 && obj.getIntValue("un_charge") == 1) {
|
||||
AdjustEvent good_user = new AdjustEvent("val8lv");
|
||||
Adjust.trackEvent(good_user);
|
||||
|
||||
@@ -31,12 +31,15 @@ import com.alibaba.android.arouter.launcher.ARouter;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.facebook.appevents.AppEventsLogger;
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
import com.yunbao.common.CommonAppConfig;
|
||||
import com.yunbao.common.Constants;
|
||||
import com.yunbao.common.bean.LiveGiftBean;
|
||||
import com.yunbao.common.bean.LiveGiftBean2;
|
||||
import com.yunbao.common.bean.UserBean;
|
||||
import com.yunbao.common.dialog.AbsDialogFragment;
|
||||
import com.yunbao.common.http.CommonHttpUtil;
|
||||
import com.yunbao.common.http.HttpCallback;
|
||||
import com.yunbao.common.interfaces.OnItemClickListener;
|
||||
import com.yunbao.common.manager.IMLoginManager;
|
||||
|
||||
@@ -32,7 +32,6 @@ import com.yunbao.live.activity.LiveAudienceActivity;
|
||||
import static com.yunbao.common.CommonAppContext.logger;
|
||||
import static com.yunbao.common.CommonAppContext.mFirebaseAnalytics;
|
||||
import static com.yunbao.common.utils.RouteUtil.PATH_COIN;
|
||||
import static com.yunbao.common.utils.RouteUtil.PATH_GOOGLE;
|
||||
|
||||
public class LiveHDDialogFragment extends AbsDialogFragment {
|
||||
|
||||
@@ -133,14 +132,9 @@ public class LiveHDDialogFragment extends AbsDialogFragment {
|
||||
public class JsInteration {
|
||||
@JavascriptInterface
|
||||
public void androidGoTopUp() {
|
||||
if (CommonAppConfig.IS_GOOGLE_PLAY == true) {
|
||||
//谷歌的
|
||||
String url = CommonAppConfig.HOST + "/index.php?g=Appapi&m=Mall&a=googlePaycoin&first_page=1&uid=" + CommonAppConfig.getInstance().getUid() + "&token=" + CommonAppConfig.getInstance().getToken();
|
||||
ARouter.getInstance().build(PATH_GOOGLE).withString("url", url).navigation();
|
||||
} else {
|
||||
//我们的
|
||||
|
||||
ARouter.getInstance().build(PATH_COIN).withInt("p", 0).withString("tag", "&first_page=1").navigation();
|
||||
}
|
||||
|
||||
dismiss();
|
||||
}
|
||||
|
||||
|
||||
@@ -141,17 +141,7 @@ public class LiveLinkMicPresenter implements View.OnClickListener {
|
||||
if ("showBanner".equals(str)) {
|
||||
showBanner3();
|
||||
} else if ("stop_svga_new_user_double".equals(str) && mBannerList3.size() > 2) {
|
||||
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");
|
||||
mBanner3.update(mBannerList3);
|
||||
if (mBannerList3.get(0).getLink().equals("1")) {
|
||||
@@ -163,17 +153,7 @@ public class LiveLinkMicPresenter implements View.OnClickListener {
|
||||
}
|
||||
} else if ("stop_svga_new_user_follow".equals(str)&& mBannerList3.size() > 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);
|
||||
if (mBannerList3.get(0).getLink().equals("1")) {
|
||||
if (mBannerList3.get(1).getLink().equals("1")) {
|
||||
@@ -183,17 +163,6 @@ public class LiveLinkMicPresenter implements View.OnClickListener {
|
||||
}
|
||||
}
|
||||
} else if ("stop_new_user_gif".equals(str)&& mBannerList3.size() > 0) {
|
||||
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);
|
||||
mBannerList3.get(0).setLink("1");
|
||||
mBanner3.update(mBannerList3);
|
||||
@@ -205,10 +174,43 @@ public class LiveLinkMicPresenter implements View.OnClickListener {
|
||||
}
|
||||
}
|
||||
} else if ("stop_svga_new_user_double1".equals(str)) {
|
||||
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");
|
||||
}
|
||||
}
|
||||
});
|
||||
publicToast(mContext);
|
||||
} else if ("stop_svga_new_user_follow1".equals(str)) {
|
||||
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");
|
||||
}
|
||||
}
|
||||
});
|
||||
publicToast(mContext);
|
||||
} else if ("stop_new_user_gif1".equals(str)) {
|
||||
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");
|
||||
}
|
||||
}
|
||||
});
|
||||
publicToast(mContext);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user