From 963fe2c110731cfa520bd602efd314de82d0b19b Mon Sep 17 00:00:00 2001
From: Martin <13046765170@163.com>
Date: Thu, 4 Jul 2024 17:59:56 +0800
Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=A5=BD=E5=8F=8B=E9=82=80=E8=AF=B7?=
=?UTF-8?q?=E5=AE=88=E6=8A=A4=E5=86=85=E5=AE=B9=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../yunbao/common/bean/GuardPriceModel.java | 18 +
.../dialog/GuardBuyCouponTipsDialog.java | 78 ++++
.../com/yunbao/common/http/PDLiveApi.java | 2 +-
.../common/http/live/LiveNetManager.java | 4 +-
.../layout/dialog_guard_buy_coupon_tips.xml | 88 ++++
.../guard_buy_tips_cancel_bg.png | Bin 0 -> 27055 bytes
common/src/main/res/values-zh-rHK/strings.xml | 2 +
common/src/main/res/values-zh-rTW/strings.xml | 2 +
common/src/main/res/values-zh/strings.xml | 2 +
common/src/main/res/values/strings.xml | 2 +
.../live/dialog/LiveBuyGuardDialog.java | 413 +++++++++---------
.../yunbao/main/views/MainHomeViewHolder.java | 3 -
12 files changed, 413 insertions(+), 201 deletions(-)
create mode 100644 common/src/main/java/com/yunbao/common/dialog/GuardBuyCouponTipsDialog.java
create mode 100644 common/src/main/res/layout/dialog_guard_buy_coupon_tips.xml
create mode 100644 common/src/main/res/mipmap-xxhdpi/guard_buy_tips_cancel_bg.png
diff --git a/common/src/main/java/com/yunbao/common/bean/GuardPriceModel.java b/common/src/main/java/com/yunbao/common/bean/GuardPriceModel.java
index 24568f683..c93e6cdee 100644
--- a/common/src/main/java/com/yunbao/common/bean/GuardPriceModel.java
+++ b/common/src/main/java/com/yunbao/common/bean/GuardPriceModel.java
@@ -22,6 +22,24 @@ public class GuardPriceModel extends BaseModel {
private String discount;
@SerializedName("price_key")
private int priceKey;
+ @SerializedName("coupon_discount")
+ private String couponDiscount;
+ @SerializedName("coupon_discount_en")
+ private String couponDiscountEn;
+ @SerializedName("coupon_discount_price")
+ private String couponDiscountPrice;
+
+ public String getCouponDiscount() {
+ return couponDiscount;
+ }
+
+ public String getCouponDiscountEn() {
+ return couponDiscountEn;
+ }
+
+ public String getCouponDiscountPrice() {
+ return couponDiscountPrice;
+ }
public String getOpeningTime() {
return openingTime;
diff --git a/common/src/main/java/com/yunbao/common/dialog/GuardBuyCouponTipsDialog.java b/common/src/main/java/com/yunbao/common/dialog/GuardBuyCouponTipsDialog.java
new file mode 100644
index 000000000..3bc277ea0
--- /dev/null
+++ b/common/src/main/java/com/yunbao/common/dialog/GuardBuyCouponTipsDialog.java
@@ -0,0 +1,78 @@
+package com.yunbao.common.dialog;
+
+import android.app.Activity;
+import android.app.Dialog;
+import android.content.Context;
+import android.text.Html;
+import android.text.Spanned;
+import android.view.View;
+import android.widget.TextView;
+
+import com.yunbao.common.R;
+import com.yunbao.common.utils.DialogUitl;
+import com.yunbao.common.utils.WordUtil;
+
+public class GuardBuyCouponTipsDialog {
+
+ /**
+ * @param context
+ * @param coin 钻石
+ * @param content 购买类型名称
+ * @param simpleCallback
+ */
+ public static void showBuyOrRenewDialog(Context context, String coupon, String coin, String content,
+ DialogUitl.SimpleCallback simpleCallback) {
+ if (context instanceof Activity) {
+ if (((Activity) context).isDestroyed() || ((Activity) context).isFinishing()) {
+ return;
+ }
+ }
+
+ final Dialog dialog = new Dialog(context, R.style.dialog2);
+ dialog.setContentView(R.layout.dialog_guard_buy_coupon_tips);
+ dialog.setCancelable(true);
+ dialog.setCanceledOnTouchOutside(true);
+ TextView btn_confirm = dialog.findViewById(R.id.btn_confirm);
+ TextView content2 = dialog.findViewById(R.id.content2);
+
+ Spanned tips;
+ if (WordUtil.isNewZh()) {
+ tips = Html.fromHtml("您有一張"
+ + "" + content + "優惠券
"
+ + "開通/續費" + content + "(1個月)時,
可享"
+ + "" + coupon + "折"
+ + "優惠 (折後:"
+ + "" + coin + "鑽)
"
+ + "是否使用優惠券?");
+ } else {
+ tips = Html.fromHtml("You have a "
+ + "" + content + " coupon"
+ + " When activating/renewing " + content + "(1 month), you can enjoy a"
+ + " " + coupon + "% "
+ + "discount (After folding:"
+ + "" + coin + " diamonds"
+ + ")Do you want to use coupons?");
+ }
+ content2.setText(tips);
+ dialog.findViewById(R.id.btn_cancel).setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ dialog.dismiss();
+ }
+ });
+ dialog.findViewById(R.id.btn_cancel1).setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ dialog.dismiss();
+ }
+ });
+ btn_confirm.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ simpleCallback.onConfirmClick(dialog, "");
+ }
+ });
+ dialog.show();
+ }
+
+}
diff --git a/common/src/main/java/com/yunbao/common/http/PDLiveApi.java b/common/src/main/java/com/yunbao/common/http/PDLiveApi.java
index e0e42ce10..c0fda5d37 100644
--- a/common/src/main/java/com/yunbao/common/http/PDLiveApi.java
+++ b/common/src/main/java/com/yunbao/common/http/PDLiveApi.java
@@ -1194,7 +1194,7 @@ public interface PDLiveApi {
Observable> getGuardOpenInfo(@Query("liveuid") String liveUid);
@GET("/api/public/?service=Guard.openGuard")
- Observable> openGuard(@Query("liveuid") String liveUid, @Query("guard_type") String guardType, @Query("price_key") String priceKey, @Query("stream") String stream);
+ Observable> openGuard(@Query("liveuid") String liveUid, @Query("guard_type") String guardType, @Query("price_key") String priceKey, @Query("stream") String stream,@Query("coupon_type") String coupon_type);
@GET("/api/public/?service=Guard.sendMoneyLong")
Observable> sendMoneyLong(@Query("liveuid") String liveUid, @Query("gold_num") String goldNum);
diff --git a/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java b/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java
index 29fa05c34..5df075a35 100644
--- a/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java
+++ b/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java
@@ -3014,9 +3014,9 @@ public class LiveNetManager {
}
- public void openGuard(String liveUid, String guardType, String priceKey, String stream, HttpCallback callback) {
+ public void openGuard(String liveUid, String guardType, String priceKey, String stream,String coupon_type, HttpCallback callback) {
API.get().pdLiveApi(mContext)
- .openGuard(liveUid, guardType, priceKey, stream)
+ .openGuard(liveUid, guardType, priceKey, stream,coupon_type)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new Consumer>() {
diff --git a/common/src/main/res/layout/dialog_guard_buy_coupon_tips.xml b/common/src/main/res/layout/dialog_guard_buy_coupon_tips.xml
new file mode 100644
index 000000000..0c22f92be
--- /dev/null
+++ b/common/src/main/res/layout/dialog_guard_buy_coupon_tips.xml
@@ -0,0 +1,88 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/common/src/main/res/mipmap-xxhdpi/guard_buy_tips_cancel_bg.png b/common/src/main/res/mipmap-xxhdpi/guard_buy_tips_cancel_bg.png
new file mode 100644
index 0000000000000000000000000000000000000000..0820358ec2da7c99a05e2afebc6641c29d886812
GIT binary patch
literal 27055
zcmV)JK)b(*P)PyA07*naRCr$1y?g9#XLTO9_xHOUUx-IU83iF)sR^Q^G^u6+Op|t|QATSzN4Z8SqkDovua
z(IkK%j?X#2%eSZdUF&()v)=vg@7up~4i2#d=l6ZzzOHwzXFcokzHi_CDf#c&XP>>U
z>$>Z9F7F&1?H;|f@B8l@hT-L1*S);!hHvfq{y*=!?pwN{+v&URMMK~BT{m?7&~@GT
z*ZA-FN9SMkL)UkGHw;7PhjzpG-O$_dI1c}g7bvHXzn6=ZOO5A_$ByUe`Q-}!d$~k8
ze7u)E!FU~BZv0q|El2S3<&54xkH3xg_Sfj~Jmnqi(d@G074V!hgKG~k-Z11brw1;s
z_*uTt-zLX>BP-UQs)xN&L5?r^M_t#Qc3t-e!!Z1RUDy47*L7d)`~Hi=F#MbS{r%rN
zJw3hLb=}3AZ@&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#dW&sjoySC
z<2vi(|BjB1es#TGKfJrU`>!5<{P8be1=d`XQ@-LK!uSfHC<@H=s(2(ejNmXgaMtYabfz{iV@OgSOX+(#bAI>YT=
zQAIL0$~kfbO9w3hl+-xtunEQI6dU%;M6Zq=D#Iz-8-*rgK&iTfd$=bEzznb;4{~Er
z=@FmRQf5{28peX81A9y@DJ{XPnyvZgH
zV5#N)C@x7*iJ1*L?WZ_B>9gbbRMySeG_EVi758NuvhjZFqoM1c>xSX?SF6>}9UUEA
zc=E|7pSvbVbB!+Y4F_2IUU%Mk=ePNqTi^AcR)zSEzVH8wuIs*Se}8{98n*p!T?V%N
zT?V41z<{LGQmLzhH^iAWxXzI+Q`v8o^;;c%H
z@;%BiHG_s+5ZgxR7i-?zt4*OaabFgEnvlB$hZh{fw@!_0Q`Ow4d&!~!h?dhD#oG6)
z^7ptd)zRgn_0aXdJq+Fd-S@+9c3t-y!!UgQ!i5XJeU0$tnqTG{8nE&6W*
zhG953IXQW0*LC07_x&sSzW?_1di||^-+xQjb>GtW{qB0bzOk>jQMu-#`_p*A?JzrA
z=t~WA6_{5A5b#StL7oE;1p@7pa&MD*rwm0Rj=@T%#xgwV&3`3{hYf7GN{8%mDN}^G
zccVKxu9~WSRcMa%<|V^YG*&vRcUp=$fSiAcp1R@_v
e{MYtCwbw
literal 0
HcmV?d00001
diff --git a/common/src/main/res/values-zh-rHK/strings.xml b/common/src/main/res/values-zh-rHK/strings.xml
index dfe78a92b..ba820bc71 100644
--- a/common/src/main/res/values-zh-rHK/strings.xml
+++ b/common/src/main/res/values-zh-rHK/strings.xml
@@ -1501,4 +1501,6 @@
短劇
完成*1
主播正在PK,稍後再試
+ 使用
+ 取消
diff --git a/common/src/main/res/values-zh-rTW/strings.xml b/common/src/main/res/values-zh-rTW/strings.xml
index da8b9c5ed..1f89b272c 100644
--- a/common/src/main/res/values-zh-rTW/strings.xml
+++ b/common/src/main/res/values-zh-rTW/strings.xml
@@ -1500,4 +1500,6 @@
短劇
完成*1
主播正在PK,稍後再試
+ 使用
+ 取消
diff --git a/common/src/main/res/values-zh/strings.xml b/common/src/main/res/values-zh/strings.xml
index 2b6a58bed..415ed8c98 100644
--- a/common/src/main/res/values-zh/strings.xml
+++ b/common/src/main/res/values-zh/strings.xml
@@ -1497,5 +1497,7 @@
短劇
完成*1
主播正在PK,稍後再試
+ 使用
+ 取消
diff --git a/common/src/main/res/values/strings.xml b/common/src/main/res/values/strings.xml
index 4ea97c177..6d6827531 100644
--- a/common/src/main/res/values/strings.xml
+++ b/common/src/main/res/values/strings.xml
@@ -1506,4 +1506,6 @@ Limited ride And limited avatar frame
Theater
The anchor is in PK, please try again later
once
+ Use
+ Cancel
diff --git a/live/src/main/java/com/yunbao/live/dialog/LiveBuyGuardDialog.java b/live/src/main/java/com/yunbao/live/dialog/LiveBuyGuardDialog.java
index 9668838bf..76a4f47f7 100644
--- a/live/src/main/java/com/yunbao/live/dialog/LiveBuyGuardDialog.java
+++ b/live/src/main/java/com/yunbao/live/dialog/LiveBuyGuardDialog.java
@@ -41,6 +41,7 @@ import com.yunbao.common.bean.GuardUserInfoModel;
import com.yunbao.common.bean.IMLoginModel;
import com.yunbao.common.custom.LiveGuardScalePageTransformer;
import com.yunbao.common.dialog.AbsDialogPopupWindow;
+import com.yunbao.common.dialog.GuardBuyCouponTipsDialog;
import com.yunbao.common.dialog.GuardBuyTipsDialog;
import com.yunbao.common.dialog.GuardUpgradePopup;
import com.yunbao.common.dialog.LiveBuyGuardSelectPopup;
@@ -246,6 +247,7 @@ public class LiveBuyGuardDialog extends AbsDialogPopupWindow {
openTheGuard.setText(dataTipModel.isOpen() ? WordUtil.isNewZh() ? "續費神之守護" : "Renew God Guardian"
: WordUtil.getNewString(R.string.open_the_god_guard));
}
+ discountPrice.setTag("1");
guardPriceModel = price.get(0);
if (TextUtils.isEmpty(guardPriceModel.getDiscountPrice())) {
discountPrice.setText(String.valueOf(guardPriceModel.getOriginalPrice()));
@@ -308,6 +310,7 @@ public class LiveBuyGuardDialog extends AbsDialogPopupWindow {
@Override
public void onLiveBuyGuardSelectListener(GuardPriceModel model) {
guardPriceModel = model;
+ discountPrice.setTag(String.valueOf(guardPriceModel.getPriceKey()));
if (TextUtils.isEmpty(guardPriceModel.getDiscountPrice())) {
discountPrice.setText(String.valueOf(guardPriceModel.getOriginalPrice()));
originalPrice.setVisibility(GONE);
@@ -340,204 +343,22 @@ public class LiveBuyGuardDialog extends AbsDialogPopupWindow {
ViewClicksAntiShake.clicksAntiShake(openTheGuard, new ViewClicksAntiShake.ViewClicksCallBack() {
@Override
public void onViewClicks() {
- if (TextUtils.equals(userInfo.getIsOpen(), "1")) {
- GuardBuyTipsDialog
- .showBuyOrRenewDialog(mContext,
- discountPrice.getText().toString(),
- dataTipModel.getGuardName(), dataTipModel.isOpen(),
- mGuardUserInfoModel, dataTipModel.getGuardType(), new DialogUitl.SimpleCallback2() {
- @Override
- public void onCancelClick() {
- dismiss();
- }
-
- @Override
- public void onConfirmClick(Dialog dialog, String content) {
-
- LiveNetManager.get(activity)
- .openGuard(mLiveUid,
- String.valueOf(dataTipModel.getGuardType()),
- String.valueOf(guardPriceModel.getPriceKey()), mStream, new HttpCallback() {
- @Override
- public void onSuccess(String data) {
- if (TextUtils.equals(data, "22")) {
- new DialogUitl.Builder(mContext)
- .setView(R.layout.dialog_live_unfollow)
- .setConfirmString(mContext.getString(R.string.charge))
- .setContent(mContext.getString(R.string.insufficient_balance))
- .setClickCallback(new DialogUitl.SimpleCallback() {
- @Override
- public void onConfirmClick(Dialog dialog, String content) {
- LiveBuyGuardDialog.this.dismiss();
- ARouter.getInstance().build(PATH_COIN).withInt("p", 0).navigation();
- }
- }).build().show();
- } else {
- IMLoginManager.get(mContext).setGuardType(dataTipModel.getGuardType());
- ToastUtil.show(data);
- dismiss();
- if (dataTipModel.getGuardType() == 3) {
- new XPopup.Builder(mContext)
- .dismissOnTouchOutside(false) // 点击外部是否关闭弹窗,默认为true
- .asCustom(new DragonSendsMoneyPopup(mContext, mLiveUid))
- .show();
- }
- }
-
- }
-
- @Override
- public void onError(String error) {
- ToastUtil.show(error);
- }
- });
- }
- });
- } else {
- if (userInfo.getGuardType() > dataTipModel.getGuardType()) {
- String name = "星之守護";
- switch (userInfo.getGuardType()) {
- case 1:
- name = WordUtil.isNewZh() ? "星之守護" : "star guardian";
- break;
- case 2:
- name = WordUtil.isNewZh() ? "王之守護" : "king guardian";
- break;
- case 3:
- name = WordUtil.isNewZh() ? "神之守護" : "god guardian";
- break;
+ //判断是否选择的是一个月
+ if(discountPrice.getTag().equals("1")){
+ GuardBuyCouponTipsDialog.showBuyOrRenewDialog(mContext, WordUtil.isNewZh() ? guardPriceModel.getCouponDiscount() : guardPriceModel.getCouponDiscountEn(), guardPriceModel.getCouponDiscountPrice(), dataTipModel.getGuardName(), new DialogUitl.SimpleCallback2() {
+ @Override
+ public void onCancelClick() {
}
- StringBuffer buffer = new StringBuffer();
- if (WordUtil.isNewZh()) {
- buffer.append("您的【")
- .append(name).append("】已過期\n").append("開通相同或更高等級守護將會保留您的守護等級").append("開通低等級守護將重新計算您的守護等級");
- } else {
- buffer.append("Your [")
- .append(name).append("] has expired").append("active the same or higher level of guardian will retain your guardian level").append("active lower level guardian will recalculate your guardian level");
+
+ @Override
+ public void onConfirmClick(Dialog dialog, String content) {
+ bugGurd(true);
+ dialog.dismiss();
}
- GuardBuyTipsDialog
- .showBuyOrRenewDialog(mContext,
- null,
- buffer.toString(), false,
- null, -200, new DialogUitl.SimpleCallback2() {
- @Override
- public void onCancelClick() {
-
- }
-
- @Override
- public void onConfirmClick(Dialog dialog, String content) {
- GuardBuyTipsDialog
- .showBuyOrRenewDialog(mContext,
- discountPrice.getText().toString(),
- dataTipModel.getGuardName(), dataTipModel.isOpen(),
- mGuardUserInfoModel, dataTipModel.getGuardType(), new DialogUitl.SimpleCallback2() {
- @Override
- public void onCancelClick() {
- dismiss();
- }
-
- @Override
- public void onConfirmClick(Dialog dialog, String content) {
-
- LiveNetManager.get(activity)
- .openGuard(mLiveUid,
- String.valueOf(dataTipModel.getGuardType()),
- String.valueOf(guardPriceModel.getPriceKey()), mStream, new HttpCallback() {
- @Override
- public void onSuccess(String data) {
- if (TextUtils.equals(data, "22")) {
- new DialogUitl.Builder(mContext)
- .setView(R.layout.dialog_live_unfollow)
- .setConfirmString(mContext.getString(R.string.charge))
- .setContent(mContext.getString(R.string.insufficient_balance))
- .setClickCallback(new DialogUitl.SimpleCallback() {
- @Override
- public void onConfirmClick(Dialog dialog, String content) {
- LiveBuyGuardDialog.this.dismiss();
- ARouter.getInstance().build(PATH_COIN).withInt("p", 0).navigation();
- }
- }).build().show();
- } else {
- IMLoginManager.get(mContext).setGuardType(dataTipModel.getGuardType());
- ToastUtil.show(data);
- dismiss();
- if (dataTipModel.getGuardType() == 3) {
- new XPopup.Builder(mContext)
- .dismissOnTouchOutside(false) // 点击外部是否关闭弹窗,默认为true
- .asCustom(new DragonSendsMoneyPopup(mContext, mLiveUid))
- .show();
- }
- }
-
- }
-
- @Override
- public void onError(String error) {
- ToastUtil.show(error);
- }
- });
- }
- });
- }
- });
- }else {
- GuardBuyTipsDialog
- .showBuyOrRenewDialog(mContext,
- discountPrice.getText().toString(),
- dataTipModel.getGuardName(), dataTipModel.isOpen(),
- mGuardUserInfoModel, dataTipModel.getGuardType(), new DialogUitl.SimpleCallback2() {
- @Override
- public void onCancelClick() {
- dismiss();
- }
-
- @Override
- public void onConfirmClick(Dialog dialog, String content) {
-
- LiveNetManager.get(activity)
- .openGuard(mLiveUid,
- String.valueOf(dataTipModel.getGuardType()),
- String.valueOf(guardPriceModel.getPriceKey()), mStream, new HttpCallback() {
- @Override
- public void onSuccess(String data) {
- if (TextUtils.equals(data, "22")) {
- new DialogUitl.Builder(mContext)
- .setView(R.layout.dialog_live_unfollow)
- .setConfirmString(mContext.getString(R.string.charge))
- .setContent(mContext.getString(R.string.insufficient_balance))
- .setClickCallback(new DialogUitl.SimpleCallback() {
- @Override
- public void onConfirmClick(Dialog dialog, String content) {
- LiveBuyGuardDialog.this.dismiss();
- ARouter.getInstance().build(PATH_COIN).withInt("p", 0).navigation();
- }
- }).build().show();
- } else {
- IMLoginManager.get(mContext).setGuardType(dataTipModel.getGuardType());
- ToastUtil.show(data);
- dismiss();
- if (dataTipModel.getGuardType() == 3) {
- new XPopup.Builder(mContext)
- .dismissOnTouchOutside(false) // 点击外部是否关闭弹窗,默认为true
- .asCustom(new DragonSendsMoneyPopup(mContext, mLiveUid))
- .show();
- }
- }
-
- }
-
- @Override
- public void onError(String error) {
- ToastUtil.show(error);
- }
- });
- }
- });
- }
-
-
+ });
+ }else{
+ bugGurd(false);
}
switch (dataTipModel.getGuardType()) {
case 1:
@@ -605,6 +426,208 @@ public class LiveBuyGuardDialog extends AbsDialogPopupWindow {
}
+ private void bugGurd(boolean isCoupon) {
+ if (TextUtils.equals(userInfo.getIsOpen(), "1")) {
+ GuardBuyTipsDialog
+ .showBuyOrRenewDialog(mContext,
+ isCoupon?guardPriceModel.getCouponDiscountPrice():discountPrice.getText().toString(),
+ dataTipModel.getGuardName(), dataTipModel.isOpen(),
+ mGuardUserInfoModel, dataTipModel.getGuardType(), new DialogUitl.SimpleCallback2() {
+ @Override
+ public void onCancelClick() {
+ dismiss();
+ }
+
+ @Override
+ public void onConfirmClick(Dialog dialog, String content) {
+
+ LiveNetManager.get(activity)
+ .openGuard(mLiveUid,
+ String.valueOf(dataTipModel.getGuardType()),
+ String.valueOf(guardPriceModel.getPriceKey()), mStream,isCoupon?"1":"0", new HttpCallback() {
+ @Override
+ public void onSuccess(String data) {
+ if (TextUtils.equals(data, "22")) {
+ new DialogUitl.Builder(mContext)
+ .setView(R.layout.dialog_live_unfollow)
+ .setConfirmString(mContext.getString(R.string.charge))
+ .setContent(mContext.getString(R.string.insufficient_balance))
+ .setClickCallback(new DialogUitl.SimpleCallback() {
+ @Override
+ public void onConfirmClick(Dialog dialog, String content) {
+ LiveBuyGuardDialog.this.dismiss();
+ ARouter.getInstance().build(PATH_COIN).withInt("p", 0).navigation();
+ }
+ }).build().show();
+ } else {
+ IMLoginManager.get(mContext).setGuardType(dataTipModel.getGuardType());
+ ToastUtil.show(data);
+ dismiss();
+ if (dataTipModel.getGuardType() == 3) {
+ new XPopup.Builder(mContext)
+ .dismissOnTouchOutside(false) // 点击外部是否关闭弹窗,默认为true
+ .asCustom(new DragonSendsMoneyPopup(mContext, mLiveUid))
+ .show();
+ }
+ }
+
+ }
+
+ @Override
+ public void onError(String error) {
+ ToastUtil.show(error);
+ }
+ });
+ }
+ });
+ } else {
+ if (userInfo.getGuardType() > dataTipModel.getGuardType()) {
+ String name = "星之守護";
+ switch (userInfo.getGuardType()) {
+ case 1:
+ name = WordUtil.isNewZh() ? "星之守護" : "star guardian";
+ break;
+ case 2:
+ name = WordUtil.isNewZh() ? "王之守護" : "king guardian";
+ break;
+ case 3:
+ name = WordUtil.isNewZh() ? "神之守護" : "god guardian";
+ break;
+
+ }
+ StringBuffer buffer = new StringBuffer();
+ if (WordUtil.isNewZh()) {
+ buffer.append("您的【")
+ .append(name).append("】已過期\n").append("開通相同或更高等級守護將會保留您的守護等級").append("開通低等級守護將重新計算您的守護等級");
+ } else {
+ buffer.append("Your [")
+ .append(name).append("] has expired").append("active the same or higher level of guardian will retain your guardian level").append("active lower level guardian will recalculate your guardian level");
+ }
+ GuardBuyTipsDialog
+ .showBuyOrRenewDialog(mContext,
+ null,
+ buffer.toString(), false,
+ null, -200, new DialogUitl.SimpleCallback2() {
+ @Override
+ public void onCancelClick() {
+
+ }
+
+ @Override
+ public void onConfirmClick(Dialog dialog, String content) {
+ GuardBuyTipsDialog
+ .showBuyOrRenewDialog(mContext,
+ isCoupon?guardPriceModel.getCouponDiscountPrice():discountPrice.getText().toString(),
+ dataTipModel.getGuardName(), dataTipModel.isOpen(),
+ mGuardUserInfoModel, dataTipModel.getGuardType(), new DialogUitl.SimpleCallback2() {
+ @Override
+ public void onCancelClick() {
+ dismiss();
+ }
+
+ @Override
+ public void onConfirmClick(Dialog dialog, String content) {
+
+ LiveNetManager.get(activity)
+ .openGuard(mLiveUid,
+ String.valueOf(dataTipModel.getGuardType()),
+ String.valueOf(guardPriceModel.getPriceKey()), mStream,isCoupon?"1":"0", new HttpCallback() {
+ @Override
+ public void onSuccess(String data) {
+ if (TextUtils.equals(data, "22")) {
+ new DialogUitl.Builder(mContext)
+ .setView(R.layout.dialog_live_unfollow)
+ .setConfirmString(mContext.getString(R.string.charge))
+ .setContent(mContext.getString(R.string.insufficient_balance))
+ .setClickCallback(new DialogUitl.SimpleCallback() {
+ @Override
+ public void onConfirmClick(Dialog dialog, String content) {
+ LiveBuyGuardDialog.this.dismiss();
+ ARouter.getInstance().build(PATH_COIN).withInt("p", 0).navigation();
+ }
+ }).build().show();
+ } else {
+ IMLoginManager.get(mContext).setGuardType(dataTipModel.getGuardType());
+ ToastUtil.show(data);
+ dismiss();
+ if (dataTipModel.getGuardType() == 3) {
+ new XPopup.Builder(mContext)
+ .dismissOnTouchOutside(false) // 点击外部是否关闭弹窗,默认为true
+ .asCustom(new DragonSendsMoneyPopup(mContext, mLiveUid))
+ .show();
+ }
+ }
+
+ }
+
+ @Override
+ public void onError(String error) {
+ ToastUtil.show(error);
+ }
+ });
+ }
+ });
+ }
+ });
+ }else {
+ GuardBuyTipsDialog
+ .showBuyOrRenewDialog(mContext,
+ isCoupon?guardPriceModel.getCouponDiscountPrice():discountPrice.getText().toString(),
+ dataTipModel.getGuardName(), dataTipModel.isOpen(),
+ mGuardUserInfoModel, dataTipModel.getGuardType(), new DialogUitl.SimpleCallback2() {
+ @Override
+ public void onCancelClick() {
+ dismiss();
+ }
+
+ @Override
+ public void onConfirmClick(Dialog dialog, String content) {
+
+ LiveNetManager.get(activity)
+ .openGuard(mLiveUid,
+ String.valueOf(dataTipModel.getGuardType()),
+ String.valueOf(guardPriceModel.getPriceKey()), mStream,isCoupon?"1":"0", new HttpCallback() {
+ @Override
+ public void onSuccess(String data) {
+ if (TextUtils.equals(data, "22")) {
+ new DialogUitl.Builder(mContext)
+ .setView(R.layout.dialog_live_unfollow)
+ .setConfirmString(mContext.getString(R.string.charge))
+ .setContent(mContext.getString(R.string.insufficient_balance))
+ .setClickCallback(new DialogUitl.SimpleCallback() {
+ @Override
+ public void onConfirmClick(Dialog dialog, String content) {
+ LiveBuyGuardDialog.this.dismiss();
+ ARouter.getInstance().build(PATH_COIN).withInt("p", 0).navigation();
+ }
+ }).build().show();
+ } else {
+ IMLoginManager.get(mContext).setGuardType(dataTipModel.getGuardType());
+ ToastUtil.show(data);
+ dismiss();
+ if (dataTipModel.getGuardType() == 3) {
+ new XPopup.Builder(mContext)
+ .dismissOnTouchOutside(false) // 点击外部是否关闭弹窗,默认为true
+ .asCustom(new DragonSendsMoneyPopup(mContext, mLiveUid))
+ .show();
+ }
+ }
+
+ }
+
+ @Override
+ public void onError(String error) {
+ ToastUtil.show(error);
+ }
+ });
+ }
+ });
+ }
+
+
+ }
+ }
+
private void closeAnimSudGameListEvent(View view) {
ObjectAnimator animator = ObjectAnimator.ofFloat(view, "rotation", -90f, 0f);
animator.setDuration(animDuration);
diff --git a/main/src/main/java/com/yunbao/main/views/MainHomeViewHolder.java b/main/src/main/java/com/yunbao/main/views/MainHomeViewHolder.java
index 3f92eb5b5..c55dd0955 100644
--- a/main/src/main/java/com/yunbao/main/views/MainHomeViewHolder.java
+++ b/main/src/main/java/com/yunbao/main/views/MainHomeViewHolder.java
@@ -15,12 +15,9 @@ import com.lxj.xpopup.XPopup;
import com.yunbao.common.manager.IMLoginManager;
import com.yunbao.common.utils.MobclickAgent;
import com.yunbao.common.activity.AbsActivity;
-import com.yunbao.common.dialog.SkitCheckInWasSuccessfulPopup;
import com.yunbao.common.event.FloatWarOrderEvent;
import com.yunbao.common.glide.ImgLoader;
import com.yunbao.common.utils.RouteUtil;
-import com.yunbao.live.dialog.LiveBuyGuardDialog;
-import com.yunbao.live.dialog.LiveGuardDialog;
import com.yunbao.live.dialog.LivePrankDialogFragment;
import com.yunbao.main.R;