Commit af87b6f9 by ydl

补充手动切换异常上传108

parent 91dec545
...@@ -759,7 +759,7 @@ class AudioHomeActivity : ...@@ -759,7 +759,7 @@ class AudioHomeActivity :
override fun onClickEnsure() { override fun onClickEnsure() {
//是手动切换且连接成功 //是手动切换且连接成功
if (type == 1 && isConnectSuccess) { if (type == 1 && isConnectSuccess) {
uploadException("", "zhu") uploadException("", "zhu", "108")
} }
switchAXB() switchAXB()
} }
...@@ -1161,12 +1161,11 @@ class AudioHomeActivity : ...@@ -1161,12 +1161,11 @@ class AudioHomeActivity :
* 上传错误日志 * 上传错误日志
* zhu 洪平要的,判别是移动端主动调的还是声网返的 * zhu 洪平要的,判别是移动端主动调的还是声网返的
*/ */
private fun uploadException(message: String, zhu: String = "") { private fun uploadException(message: String, zhu: String = "", eventType: String = "99") {
var time: String = (System.currentTimeMillis() / 1000).toString() var time: String = (System.currentTimeMillis() / 1000).toString()
var uid: String = var uid: String = ModularServiceManager.provide(IUserService::class.java).getUserInfo()?.uid!!
ModularServiceManager.provide(IUserService::class.java).getUserInfo()?.uid!!
var payLoad = PayLoad(channelId ?: "0", time, uid, "1", "999", message) var payLoad = PayLoad(channelId ?: "0", time, uid, "1", "999", message)
var connectException = ConnectExceptionCommand(time + zhu, "2", "99", payLoad) var connectException = ConnectExceptionCommand(time + zhu, "2", eventType, payLoad)
YDLavManager.instances.uploadException(connectException) YDLavManager.instances.uploadException(connectException)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment