Browse Source

需求变更

hurixing 1 year ago
parent
commit
1607feba6b

+ 12 - 8
game/src/main/java/com/yingyangfly/game/play/PlayGameActivity.kt

@@ -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()

+ 2 - 0
home/src/main/java/com/yingyangfly/home/adapter/ExclusiveGameAdapter.kt

@@ -18,6 +18,8 @@ class ExclusiveGameAdapter (override val layoutId: Int = R.layout.item_exclusive
         binding.data = item
         if (TextUtils.equals("0",item.status)){
             binding.gameImage.setAlpha(0.3f)
+        }else{
+            binding.gameImage.setAlpha(1f)
         }
         if (TextUtils.equals("A",item.gameType)){
             binding.gameTypeId.setText("定向力")