|
@@ -635,20 +635,24 @@ class PlayGameActivity : BaseMVVMActivity<ActivityPlayGameBinding, PlayGameViewM
|
|
|
*/
|
|
|
private fun parsingData(gameDataBean: GameDataBean, isPass: String) {
|
|
|
runOnUiThread {
|
|
|
- if (TextUtils.equals("A", playClass) || TextUtils.equals("D", playClass)) {
|
|
|
+ if (TextUtils.equals("D", playClass)) {
|
|
|
showCompletionTrainingDialog(gameDataBean)
|
|
|
} else {
|
|
|
if (TextUtils.equals("2", isPass)) {
|
|
|
LiveEventBusUtil.send(RxBusCodes.QUITGAME, "")
|
|
|
finish()
|
|
|
} else if (TextUtils.equals("3", isPass)) {
|
|
|
- //游戏通关
|
|
|
- ARouter.getInstance().build(RouterUrlCommon.gameSettlement)
|
|
|
- .withString("gameCode", gameCode).withString("playClass", playClass)
|
|
|
- .withString("gameType", gameType)
|
|
|
- .withString("gameTotalLevel", gameTotalLevel)
|
|
|
- .withTransition(R.anim.leftin, R.anim.leftout).navigation(mContext)
|
|
|
- reportLog("游戏通关,gameCode: $gameCode ,playClass$playClass")
|
|
|
+ if (TextUtils.equals("A", playClass) ){
|
|
|
+ showCompletionTrainingDialog(gameDataBean)
|
|
|
+ }else {
|
|
|
+ //游戏通关
|
|
|
+ ARouter.getInstance().build(RouterUrlCommon.gameSettlement)
|
|
|
+ .withString("gameCode", gameCode).withString("playClass", playClass)
|
|
|
+ .withString("gameType", gameType)
|
|
|
+ .withString("gameTotalLevel", gameTotalLevel)
|
|
|
+ .withTransition(R.anim.leftin, R.anim.leftout).navigation(mContext)
|
|
|
+ reportLog("游戏通关,gameCode: $gameCode ,playClass$playClass")
|
|
|
+ }
|
|
|
} else {
|
|
|
//游戏成功/失败
|
|
|
gameResultDialog = GameResultDialog()
|