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 337a44072..383d25321 100644 --- a/live/src/main/java/com/yunbao/live/dialog/LiveBuyGuardDialog.java +++ b/live/src/main/java/com/yunbao/live/dialog/LiveBuyGuardDialog.java @@ -397,7 +397,7 @@ public class LiveBuyGuardDialog extends AbsDialogPopupWindow { .checkUpgrades(mLiveUid, new com.yunbao.common.http.base.HttpCallback() { @Override public void onSuccess(CheckUpgradesModel data) { - if (!TextUtils.isEmpty(data.getLevel())) + if (!data.getRewards().isEmpty()) new XPopup.Builder(mContext) .asCustom(new GuardUpgradePopup(mContext, mLiveUid, data)) .show(); diff --git a/live/src/main/java/com/yunbao/live/dialog/LiveGuardDialog.java b/live/src/main/java/com/yunbao/live/dialog/LiveGuardDialog.java index e3652f8e6..c2bd14628 100644 --- a/live/src/main/java/com/yunbao/live/dialog/LiveGuardDialog.java +++ b/live/src/main/java/com/yunbao/live/dialog/LiveGuardDialog.java @@ -252,7 +252,7 @@ public class LiveGuardDialog extends AbsDialogPopupWindow { .checkUpgrades(mLiveUid, new com.yunbao.common.http.base.HttpCallback() { @Override public void onSuccess(CheckUpgradesModel data) { - if (!TextUtils.isEmpty(data.getLevel())) + if (!data.getRewards().isEmpty()) new XPopup.Builder(mContext) .asCustom(new GuardUpgradePopup(mContext, mLiveUid, data)) .show();