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

[提交人]:王雪伟

[提交简述] :小象省钱
[实现方案] :调整史诗卡抽奖
parent c4c83963
......@@ -462,58 +462,18 @@ object BoxResultDialog : LotteryContract.View, PopupWidowCloseCallBack {
return
}
this.page = "1"
var ownCoin = SettingPreference.getUserCoinNum().toDouble()
//钱数不够 去充值
if (ownCoin < onePrice) {
if (mDialog != null) {
if (mDialog!!.isShowing) {
mDialog!!.dismiss()
}
}
if (TextUtils.equals(Utils.getChannel(mActivity), "yyb")) {
showPayDialog(
mActivity,
(onePrice - ownCoin).toString(),
AdCallback { _, result ->
if (result == 0) {
showEpicCardLotteryResult(
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)
showPayDialog(
mActivity,
(onePrice ).toString(),
AdCallback { _, result ->
if (result == 0) {
mPresenter.epicCardLottery(boxId)
}
})
}
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