Commit 75262c44 authored by 王雪伟's avatar 王雪伟

[提交人]:王雪伟

[提交简述] :小象省钱
[实现方案] :调整史诗卡抽奖
parent c4c83963
...@@ -462,58 +462,18 @@ object BoxResultDialog : LotteryContract.View, PopupWidowCloseCallBack { ...@@ -462,58 +462,18 @@ object BoxResultDialog : LotteryContract.View, PopupWidowCloseCallBack {
return return
} }
this.page = "1" this.page = "1"
var ownCoin = SettingPreference.getUserCoinNum().toDouble() this.mActivity = mActivity
//钱数不够 去充值 this.boxId = boxId
if (ownCoin < onePrice) { this.onePrice = onePrice
if (mDialog != null) { this.fivePrice = fivePrice
if (mDialog!!.isShowing) {
mDialog!!.dismiss()
}
}
if (TextUtils.equals(Utils.getChannel(mActivity), "yyb")) {
showPayDialog( showPayDialog(
mActivity, mActivity,
(onePrice - ownCoin).toString(), (onePrice ).toString(),
AdCallback { _, result -> AdCallback { _, result ->
if (result == 0) { if (result == 0) {
showEpicCardLotteryResult( mPresenter.epicCardLottery(boxId)
mActivity,
boxId,
onePrice,
fivePrice
)
} }
}) })
} else {
JumpUtils.payJump(
boxId,
(onePrice - ownCoin).toString(),
Constant.Key.EPIC_CARD_LOTTERY,
onePrice.toString(),
fivePrice.toString(),
"",
page
)
}
return
} else if (Constant.Switch.isOpenLogin && !Constant.Switch.isBindLogin && boxId != "-2") {
//开启登录开关 并且未登录绑定
JumpUtils.AfterLoginJump(
boxId,
(onePrice - ownCoin).toString(),
Constant.Key.ONE_LOTTERY,
onePrice.toString(),
fivePrice.toString(),
"",
page
)
return
}
this.mActivity = mActivity
this.boxId = boxId
this.onePrice = onePrice
this.fivePrice = fivePrice
mPresenter.epicCardLottery(boxId)
} }
private var mDialog: Dialog? = null private var mDialog: Dialog? = null
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment