Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
22c56212
Commit
22c56212
authored
Dec 03, 2020
by
YKai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:呼叫失败日志优化
parent
80c862cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
YDLavManager.kt
m-audioim/src/main/java/com/ydl/audioim/YDLavManager.kt
+10
-11
No files found.
m-audioim/src/main/java/com/ydl/audioim/YDLavManager.kt
View file @
22c56212
...
...
@@ -166,13 +166,12 @@ class YDLavManager {
}
}
}
else
->{
if
(
act
is
AudioHomeActivity
)
{
act
.
runOnUiThread
{
act
.
writeAgoraLog
(
"用户呼叫失败:${errorCode}"
)
LogHelper
.
getInstance
().
uploadLog
(
false
)
}
}
}
//呼叫失败日志输出
if
(
act
is
AudioHomeActivity
){
act
.
runOnUiThread
{
act
.
writeAgoraLog
(
"发送通话邀请失败:${errorCode}"
)
LogHelper
.
getInstance
().
uploadLog
(
false
)
}
}
}
...
...
@@ -343,13 +342,13 @@ 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)}"
,
"confide.log"
,
true
)
LogHelper
.
getInstance
().
uploadLog
(
false
)
//
writeAgoraLog("云信发送通话邀请异常${throwable.message}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}", "confide.log", true)
//
LogHelper.getInstance().uploadLog(false)
}
override
fun
onFailed
(
code
:
Int
)
{
writeAgoraLog
(
"云信发送通话邀请失败${code}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}"
,
"confide.log"
,
true
)
LogHelper
.
getInstance
().
uploadLog
(
false
)
//
writeAgoraLog("云信发送通话邀请失败${code}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}", "confide.log", true)
//
LogHelper.getInstance().uploadLog(false)
}
override
fun
onSuccess
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment