Преглед изворни кода

1.日志上报添加内容

王鹏鹏 пре 2 година
родитељ
комит
d87775604d

+ 0 - 5
game/src/main/java/com/yingyangfly/game/introduction/GameIntroductionActivity.kt

@@ -88,11 +88,6 @@ class GameIntroductionActivity :
     }
 
     override fun initData() {
-        if (isPlayGameJump) {
-            binding.btnStartGame.setBackgroundResource(R.mipmap.icon_game_continue)
-        } else {
-            binding.btnStartGame.setBackgroundResource(R.mipmap.icon_staret_game_bg)
-        }
         initLiveData()
         getGameDetailByCode()
         binding.tvScientificPrincipleInfo.setMovementMethod(ScrollingMovementMethod.getInstance())

+ 19 - 16
home/src/main/java/com/yingyangfly/home/activity/HomeActivity.kt

@@ -363,11 +363,14 @@ class HomeActivity : BaseMVVMActivity<ActivityHomeBinding, HomeViewModel>(), Vie
      * 跳转游戏列表
      */
     private fun jumpWebView(bean: Record) {
-        ARouter.getInstance().build(RouterUrlCommon.gameIntroduction).withString("id", bean.id)
-            .withString("gameCode", bean.gameCode).withString("playClass", bean.playClass)
-            .withString("videoUrl", bean.gameVideoUrl).withString("desn", bean.desn)
-            .withBoolean("homePage", true).withTransition(R.anim.leftin, R.anim.leftout)
-            .navigation(mContext)
+        runOnUiThread {
+            ARouter.getInstance().build(RouterUrlCommon.gameIntroduction).withString("id", bean.id)
+                .withString("gameCode", bean.gameCode).withString("playClass", bean.playClass)
+                .withString("videoUrl", bean.gameVideoUrl).withString("desn", bean.desn)
+                .withTransition(R.anim.leftin, R.anim.leftout).navigation(mContext)
+            reportLog("首页推荐游戏内容:" + GsonUtil.GsonString(bean))
+        }
+
     }
 
     /**
@@ -568,7 +571,7 @@ class HomeActivity : BaseMVVMActivity<ActivityHomeBinding, HomeViewModel>(), Vie
                 .withString("playClass", "A").withString("videoUrl", bean.gameVideoUrl)
                 .withString("desn", bean.desn).withTransition(R.anim.leftin, R.anim.leftout)
                 .navigation(mContext)
-            reportLog("首页任务内容: " + GsonUtil.GsonString(bean))
+            reportLog("首页任务游戏内容: " + GsonUtil.GsonString(bean))
         }
     }
 
@@ -665,17 +668,17 @@ class HomeActivity : BaseMVVMActivity<ActivityHomeBinding, HomeViewModel>(), Vie
      */
     private fun makeMessageAsRead(msg: V2TIMMessage) {
         runOnUiThread {
-            V2TIMManager.getConversationManager()
-                .cleanConversationUnreadMessageCount(String.format("c2c_%s", msg.sender),
-                    0,
-                    0,
-                    object : V2TIMCallback {
-                        override fun onSuccess() {
-                        }
+            V2TIMManager.getConversationManager().cleanConversationUnreadMessageCount(
+                String.format("c2c_%s", msg.sender),
+                0,
+                0,
+                object : V2TIMCallback {
+                    override fun onSuccess() {
+                    }
 
-                        override fun onError(p0: Int, p1: String?) {
-                        }
-                    })
+                    override fun onError(p0: Int, p1: String?) {
+                    }
+                })
         }
     }