Commit 566c08ba authored by huangjunhui's avatar huangjunhui

提交到gitlab,修复游戏

parent 4670fef9
Pipeline #397 canceled with stages
......@@ -44,7 +44,7 @@ class GamePauseActivity :BaseActivity() {
//继续游戏
stop_rl_continue.setOnClickListener {
var intent = Intent()
intent.putExtra("code","ContinueGame")
// intent.putExtra("code","ContinueGame")
setResult(Activity.RESULT_OK,intent)
finish()
}
......
......@@ -108,6 +108,8 @@ class CoinCrashFragment : BaseFragment(), WithdrawCashContract.View {
//小于一元不用绑定手机号
if (wdId > 0 && currentCoin!! >= coins.toInt()) {
// mPresenter?.withdrawWhcaht(wdId, mDefaultType, cash)
mLoading?.show()
mPresenter?.getWechatCrash(wdId)
} else {
cash_coin_tv_now.isEnabled = true
......@@ -156,6 +158,7 @@ class CoinCrashFragment : BaseFragment(), WithdrawCashContract.View {
}
override fun onWxCash(result: WechatResultEntity) {
mLoading?.dismiss()
cash_coin_tv_now.isEnabled = true
showToast(result?.reason)
mPresenter?.getCashConfig(1)// 获取金币提现
......@@ -163,6 +166,7 @@ class CoinCrashFragment : BaseFragment(), WithdrawCashContract.View {
}
override fun onWxCashFail(errorMsg: String) {
mLoading?.dismiss()
showToast(errorMsg)
cash_coin_tv_now.isEnabled = true
}
......
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