Commit 6b0cd2d7 by YKai

feat:拨打电话日志优化,组件升级

parent f3b2f205
......@@ -5,7 +5,7 @@ ext {
ydlPublishVersion = [
// -------------- 业务模块 --------------
//第三步 若干
"m-confide" : "0.0.48.83",
"m-confide" : "0.0.48.84",
"m-consultant" : "0.0.59.36",
"m-fm" : "0.0.30.00",
"m-user" : "0.0.60.34",
......@@ -40,7 +40,7 @@ ext {
"ydl-webview" : "0.0.38.33",
"ydl-media" : "0.0.21.6",
"ydl-pay" : "0.0.18.13",
"m-audioim" : "0.0.49.29.15",
"m-audioim" : "0.0.49.29.16",
"ydl-flutter-base": "0.0.14.20",
//以下 几乎不会动
......@@ -89,7 +89,7 @@ ext {
// -------------- 业务模块 --------------
//第三步 若干
"m-confide" : "0.0.48.83",
"m-confide" : "0.0.48.84",
"m-consultant" : "0.0.51.16",
"m-fm" : "0.0.23.5",
"m-user" : "0.0.41.13",
......@@ -121,7 +121,7 @@ ext {
"ydl-webview" : "0.0.38.32",
"ydl-media" : "0.0.21.6",
"ydl-pay" : "0.0.18.11",
"m-audioim" : "0.0.49.29.15",
"m-audioim" : "0.0.49.29.16",
"ydl-flutter-base": "0.0.14.20",
//以下 几乎不会动
......
......@@ -429,6 +429,7 @@ class AudioHomeActivity :
initSensorManager()
//页面传递数据初始化
initIntentData()
writeAgoraLog("通话页面打开的时候,RTM登录状态码:${YDLavManager.sdkStatus}")
if (YDLavManager.sdkStatus != Constants.CONNECTION_STATE_CONNECTED) {
//再次登录声网,确保声网登录状态
reLoginRTM()
......@@ -509,8 +510,8 @@ class AudioHomeActivity :
writeAgoraLog("RMT状态:${YDLavManager.sdkStatus},重新登录RMT")
val uid = YdlCommonRouterManager.getYdlCommonRoute().getUid().toString()
YDLavManager.instances.login(uid) { _isSuccess, _msg ->
writeAgoraLog("登录RTM的uid=${uid}")
val result = if (_isSuccess) "RMT登录成功" else "RMT登录失败:$_msg"
// writeAgoraLog("拨打电话界面打开RTM重新登录,uid=${uid}")
val result = if (_isSuccess) "拨打电话界面打开RMT重新登录成功,uid=${uid}" else "拨打电话界面打开RMT登录失败:$_msg,uid=${uid}"
writeAgoraLog(result)
}
}
......
......@@ -384,18 +384,19 @@ class YDLavManager {
override fun onSuccess() {
//登陆成功,发起呼叫
LogUtil.e("[agora]实时消息登录成功")
writeAgoraLog("声网rtm登录成功$userId-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}", "confide.log", false)
event(true, "")
}
override fun onFailure(msg: String?) {
LogUtil.e("[agora]实时消息登录失败:$msg")
writeAgoraLog("声网rtm登录失败:$msg-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}", "confide.log", false)
event(false, msg)
}
})
} else {
LogUtil.e("声网token获取失败uid:" + userId + " error:" + it.msg)
LogHelper.getInstance()
.writeLogSync("声网token获取失败uid:" + userId + " error:" + it.msg)
LogHelper.getInstance().writeLogSync("声网token获取失败uid:" + userId + " error:" + it.msg)
}
}, {
LogUtil.e("声网token获取异常uid:" + userId + " error:" + it.message)
......@@ -528,6 +529,7 @@ class YDLavManager {
override fun onConnectionStateChanged(state: Int, reason: Int) {
sdkStatus = state
writeAgoraLog("声网rtm登录状态:${state}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}", "confide.log", false)
LogUtil.i("[agora]onConnectionStateChanged:state:${state} -->reason:$reason")
}
}
......
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