Browse Source

1.日志上报添加内容

王鹏鹏 2 years ago
parent
commit
7de9caa8a7

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

@@ -96,7 +96,7 @@ class GameIntroductionActivity :
         initLiveData()
         getGameDetailByCode()
         binding.tvScientificPrincipleInfo.setMovementMethod(ScrollingMovementMethod.getInstance())
-        reportLog("首次进入游戏介绍页面,gameCode: $gameCode playClass:$playClass")
+        reportLog("首次进入游戏介绍页面,gameCode: $gameCode playClass:$playClass gameId: $id")
     }
 
     override fun onNewIntent(intent: Intent?) {
@@ -112,7 +112,7 @@ class GameIntroductionActivity :
             mVodPlayer?.resume()
         }
         binding.btnStartGame.setBackgroundResource(R.mipmap.icon_game_continue)
-        reportLog("从游戏页面返回游戏介绍页面,gameCode: $gameCode playClass:$playClass")
+        reportLog("从游戏页面返回游戏介绍页面,gameCode: $gameCode playClass:$playClass gameId: $id")
     }
 
     /**
@@ -230,9 +230,9 @@ class GameIntroductionActivity :
                                     }
                                 }
                                 exitGameDialog.show(supportFragmentManager, "exitGameDialog")
-                                reportLog("进入过游戏页面点击返回按钮,gameCode: $gameCode playClass:$playClass")
+                                reportLog("进入过游戏页面点击返回按钮,gameCode: $gameCode playClass:$playClass gameId: $id")
                             } else {
-                                reportLog("没有进入过游戏页面,点击返回按钮,gameCode: $gameCode playClass:$playClass")
+                                reportLog("没有进入过游戏页面,点击返回按钮,gameCode: $gameCode playClass:$playClass gameId: $id")
                                 finish()
                             }
                         }
@@ -260,7 +260,7 @@ class GameIntroductionActivity :
                                     .withString("gameName", gameBean!!.gameName)
                                     .withTransition(R.anim.leftin, R.anim.leftout)
                                     .navigation(mContext)
-                                reportLog("进入游戏页面,游戏名称:" + gameBean!!.gameName + "游戏code: " + gameCode + " playClass:" + playClass)
+                                reportLog("进入游戏页面,游戏名称:" + gameBean!!.gameName + "游戏code: " + gameCode + " playClass:" + playClass + " gameId:" + id)
                             }
                         }
                     }

+ 13 - 12
home/src/main/java/com/yingyangfly/home/activity/HomeActivity.kt

@@ -565,8 +565,9 @@ class HomeActivity : BaseMVVMActivity<ActivityHomeBinding, HomeViewModel>(), Vie
         ARouter.getInstance().build(RouterUrlCommon.gameIntroduction)
             .withString("gameCode", bean.gameCode).withString("id", bean.id)
             .withString("playClass", "A").withString("videoUrl", bean.gameVideoUrl)
-            .withString("desn", bean.desn).withBoolean("homePage", true)
-            .withTransition(R.anim.leftin, R.anim.leftout).navigation(mContext)
+            .withString("desn", bean.desn).withTransition(R.anim.leftin, R.anim.leftout)
+            .navigation(mContext)
+        reportLog("首页任务内容: " + GsonUtil.GsonString(bean))
     }
 
     private fun initLiveData() {
@@ -662,17 +663,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?) {
+                        }
+                    })
         }
     }