|
@@ -13,6 +13,7 @@ import com.yingyangfly.baselib.ext.getScaleAnimation
|
|
|
import com.yingyangfly.baselib.ext.toast
|
|
|
import com.yingyangfly.baselib.mvvm.BaseMVVMActivity
|
|
|
import com.yingyangfly.baselib.router.RouterUrlCommon
|
|
|
+import com.yingyangfly.baselib.utils.User
|
|
|
import com.yingyangfly.game.R
|
|
|
import com.yingyangfly.game.adapter.GameResultAdapter
|
|
|
import com.yingyangfly.game.databinding.ActivityGameSettlementBinding
|
|
@@ -98,6 +99,7 @@ class GameSettlementActivity :
|
|
|
override fun onResume() {
|
|
|
super.onResume()
|
|
|
loadData()
|
|
|
+ reportLog("进入游戏结算页面, gameCode: $gameCode ,gameTotalLevel:$gameTotalLevel")
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -136,4 +138,19 @@ class GameSettlementActivity :
|
|
|
adapter.setData(gameDetail)
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 阿里云日志上报
|
|
|
+ */
|
|
|
+ private fun reportLog(msg: String) {
|
|
|
+ runOnUiThread {
|
|
|
+ val log = com.aliyun.sls.android.producer.Log()
|
|
|
+ log.putContent(
|
|
|
+ "游戏结算页面日志", msg
|
|
|
+ )
|
|
|
+ log.putContent("患者id", User.getUserId())
|
|
|
+ log.putContent("患者姓名", User.getName())
|
|
|
+ sendLog(log)
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|