Commit 4670fef9 authored by huangjunhui's avatar huangjunhui

提交到gitlab

parent 3ee9a8b0
Pipeline #396 canceled with stages
......@@ -579,8 +579,10 @@ class GameActivity : UnityPlayerActivity() {
}
override fun onAdClose() {
mLoading?.dismiss()
Log.e("huangjunhui","onAdClose")
callUnity(START_GAME_OBJCT,"refreshQiandao","")
if (!TextUtils.isEmpty(doublingKey)) {
Log.e("huangjunhui","doublingKey")
addDoubleCoin(doublingKey!!)
}
}
......@@ -601,7 +603,6 @@ class GameActivity : UnityPlayerActivity() {
override fun onFailure(e: Throwable, code: String, errorMsg: String) {
mLoading?.dismiss()
}
})
......@@ -1005,11 +1006,13 @@ class GameActivity : UnityPlayerActivity() {
ApiClient.taskApi.addCoinReward(doublekingKey).compose(RxSchedulers.observableIO2Main())
.subscribe(object : BaseObserver<GetRedPackEntity>() {
override fun onSuccess(result: GetRedPackEntity) {
Log.e("huangjunhui","refreshQiandao : onSuccess")
callUnity(START_GAME_OBJCT,"refreshQiandao","")
}
override fun onFailure(e: Throwable, code: String, errorMsg: String) {
Log.e("huangjunhui","refreshQiandao : onFailure")
callUnity(START_GAME_OBJCT,"refreshQiandao","")
}
})
}
......
......@@ -86,7 +86,6 @@ class CoinCrashFragment : BaseFragment(), WithdrawCashContract.View {
wdId = mNumAdapter?.getItem(position)?.id ?: 0
cash = mNumAdapter?.getItem(position)?.cashText ?: ""
coins = mNumAdapter?.getItem(position)?.currencyText ?: ""
}
val item = mNumAdapter?.getItem(position) as CashEntity.CoinListBean
......@@ -157,15 +156,15 @@ class CoinCrashFragment : BaseFragment(), WithdrawCashContract.View {
}
override fun onWxCash(result: WechatResultEntity) {
cash_coin_tv_now.isEnabled = true
showToast(result?.reason)
mPresenter?.getCashConfig(1)// 获取金币提现
}
override fun onWxCashFail(errorMsg: String) {
showToast(errorMsg)
cash_coin_tv_now.isEnabled = true
}
fun onBaindWx(openid: String) {
......
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