Commit 127546cb by YKai

feat:拨打电话日志优化

parent 368becce
......@@ -1212,6 +1212,12 @@ class AudioHomeActivity :
leaveChannel()
}
override fun onStop() {
writeAgoraLog("用户切到后台,可能要杀死进程")
uploadLog()
super.onStop()
}
override fun onDestroy() {
super.onDestroy()
uploadLog()
......
......@@ -227,6 +227,12 @@ class YDLavManager {
override fun onOtherMsg(error: String?) {
LogUtil.e("[agora]其它消息:${error}")
if (error.equals("呼叫发送成功")){
writeAgoraLog("声网发送通话邀请成功-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}", FILE_NAME)
}else{
writeAgoraLog("声网发送通话邀请失败${error}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}", FILE_NAME)
LogHelper.getInstance().uploadLog(false)
}
}
})
......@@ -334,12 +340,17 @@ class YDLavManager {
AudioImIn.sendCustomNotification(toUid, Gson().toJson(infoBean),
object : IMSendCustomNotificationResultCallBack {
override fun onException(throwable: Throwable) {
writeAgoraLog("云信发送通话邀请异常${throwable.message}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}", FILE_NAME, false)
LogHelper.getInstance().uploadLog(false)
}
override fun onFailed(code: Int) {
writeAgoraLog("云信发送通话邀请失败${code}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}", FILE_NAME, false)
LogHelper.getInstance().uploadLog(false)
}
override fun onSuccess() {
writeAgoraLog("云信发送通话邀请成功-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}", FILE_NAME, false)
}
})
}, 300)
......
......@@ -60,7 +60,7 @@ class ConfideWebServiceImpl{
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe({
if ("200".equals(it.code)){
if ("200" == it.code){
if (it.data?.dialDetail?.dialStatus !=null){
if (100007 == it.data?.dialDetail?.dialStatus) {
//支付弹窗
......
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