Commit 778b80ec by YKai

feat:用户日志升级

parent cdffe714
......@@ -5,7 +5,7 @@ ext {
ydlPublishVersion = [
// -------------- 业务模块 --------------
//第三步 若干
"m-confide" : "0.0.48.77",
"m-confide" : "0.0.48.79",
"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.9",
"m-audioim" : "0.0.49.29.11",
"ydl-flutter-base": "0.0.14.19",
//以下 几乎不会动
......@@ -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.9",
"m-audioim" : "0.0.49.29.10",
"ydl-flutter-base": "0.0.14.19",
//以下 几乎不会动
......
......@@ -52,6 +52,7 @@ import com.ydl.ydlcommon.utils.Utils
import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import com.ydl.ydlcommon.utils.log.LogHelper
import com.ydl.ydlcommon.utils.remind.ToastHelper
import com.yidianling.common.tools.ToastUtil
import com.yidianling.user.api.service.IUserService
import de.greenrobot.event.EventBus
import io.agora.rtc.Constants
......@@ -507,6 +508,7 @@ class AudioHomeActivity :
}
private fun initView() {
writeAgoraLog("用户拨打电话界面开启")
tv_change_route.isEnabled = false
//水波纹view初始化
wave_view.setDuration(6000)
......@@ -1210,6 +1212,7 @@ class AudioHomeActivity :
override fun onDestroy() {
super.onDestroy()
ToastUtil.toastShort("拨打电话界面销毁")
if (isConnectSuccess) {
uploadException("", "zhu", "108", callback = null)
}
......
......@@ -212,9 +212,9 @@ class ConsultantAudioHomeActivity :
writeAgoraLog("通话挂断:网络连接被服务器(后端)中止")
//通话结束或挂断时,上传日志文件
uploadLog()
leaveChannel()
//todo
finish()
// leaveChannel()
// finish()
close(RESULT_ANSWERED_CODE, "")
}
}
......@@ -225,10 +225,8 @@ class ConsultantAudioHomeActivity :
override fun onLeaveChannel(stats: IRtcEngineEventHandler.RtcStats?) {
super.onLeaveChannel(stats)
LogUtil.e("[agora]自己离开频道回调")
runOnUiThread {
//通知php 通话已结束
close(RESULT_ANSWERED_CODE, "")
}
//通知php 通话已结束
close(RESULT_ANSWERED_CODE, "")
}
/**
......@@ -482,6 +480,7 @@ class ConsultantAudioHomeActivity :
iv_head.setBackgroundResource(R.drawable.audioim_head_place_hold_pic)
}
tv_name.text = userName
writeAgoraLog("用户接收电话界面开启")
}
private fun initData() {
......@@ -649,7 +648,7 @@ class ConsultantAudioHomeActivity :
return
}
showStopService()
writeAgoraLog("用户点击挂断按钮")
ActionCountUtils.count(
"shengwang_popup_layer_page|shengwang_popup_layer_refuse_click",
YdlCommonRouterManager.getYdlCommonRoute().getUid().toString(),
......@@ -947,7 +946,11 @@ class ConsultantAudioHomeActivity :
private fun writeAgoraLog(content: String) {
Observable.create<Any> {
try {
AudioLogUtils.writeAgoraLog("$content-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}", "consult.log")
AudioLogUtils.writeAgoraLog(
"$content-------Time:${AudioLogUtils.format.format(
Calendar.getInstance().time
)}", "consult.log"
)
} catch (e: Exception) {
}
}.subscribeOn(Schedulers.io()).subscribe()
......
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