|
@@ -4,6 +4,7 @@ import android.annotation.SuppressLint
|
|
import android.os.Bundle
|
|
import android.os.Bundle
|
|
import android.text.Html
|
|
import android.text.Html
|
|
import android.text.TextUtils
|
|
import android.text.TextUtils
|
|
|
|
+import android.util.Log
|
|
import android.view.MotionEvent
|
|
import android.view.MotionEvent
|
|
import android.view.View
|
|
import android.view.View
|
|
import com.alibaba.android.arouter.facade.annotation.Route
|
|
import com.alibaba.android.arouter.facade.annotation.Route
|
|
@@ -13,6 +14,8 @@ import com.yingyangfly.baselib.ext.getScaleAnimation
|
|
import com.yingyangfly.baselib.ext.toast
|
|
import com.yingyangfly.baselib.ext.toast
|
|
import com.yingyangfly.baselib.mvvm.BaseMVVMActivity
|
|
import com.yingyangfly.baselib.mvvm.BaseMVVMActivity
|
|
import com.yingyangfly.baselib.router.RouterUrlCommon
|
|
import com.yingyangfly.baselib.router.RouterUrlCommon
|
|
|
|
+import com.yingyangfly.baselib.utils.LiveEventBusUtil
|
|
|
|
+import com.yingyangfly.baselib.utils.RxBusCodes
|
|
import com.yingyangfly.baselib.utils.User
|
|
import com.yingyangfly.baselib.utils.User
|
|
import com.yingyangfly.game.R
|
|
import com.yingyangfly.game.R
|
|
import com.yingyangfly.game.adapter.GameResultAdapter
|
|
import com.yingyangfly.game.adapter.GameResultAdapter
|
|
@@ -65,7 +68,6 @@ class GameSettlementActivity :
|
|
|
|
|
|
override fun initData() {
|
|
override fun initData() {
|
|
Glide.with(mContext).asGif().load(R.drawable.fish).into(binding.loadingImage)
|
|
Glide.with(mContext).asGif().load(R.drawable.fish).into(binding.loadingImage)
|
|
-
|
|
|
|
Glide.with(mContext).asGif().load(R.drawable.diban).into(binding.imageGameSettlement)
|
|
Glide.with(mContext).asGif().load(R.drawable.diban).into(binding.imageGameSettlement)
|
|
}
|
|
}
|
|
|
|
|
|
@@ -98,6 +100,7 @@ class GameSettlementActivity :
|
|
|
|
|
|
override fun onResume() {
|
|
override fun onResume() {
|
|
super.onResume()
|
|
super.onResume()
|
|
|
|
+ LiveEventBusUtil.send(RxBusCodes.FINISHGAME, "")
|
|
loadData()
|
|
loadData()
|
|
reportLog("进入游戏结算页面, gameCode: $gameCode ,gameTotalLevel:$gameTotalLevel")
|
|
reportLog("进入游戏结算页面, gameCode: $gameCode ,gameTotalLevel:$gameTotalLevel")
|
|
}
|
|
}
|
|
@@ -119,6 +122,7 @@ class GameSettlementActivity :
|
|
if (TextUtils.isEmpty(gameTotalLevel)
|
|
if (TextUtils.isEmpty(gameTotalLevel)
|
|
.not() && it.details.size < gameTotalLevel.toInt()
|
|
.not() && it.details.size < gameTotalLevel.toInt()
|
|
) {
|
|
) {
|
|
|
|
+ reportLog("进入游戏结算页面,游戏结算关卡总数不匹配, gameCode: $gameCode ,gameTotalLevel:$gameTotalLevel")
|
|
loadData()
|
|
loadData()
|
|
} else {
|
|
} else {
|
|
val details = it.details.last()
|
|
val details = it.details.last()
|