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
d00d0e19
Commit
d00d0e19
authored
Sep 09, 2022
by
万齐军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
切换axb埋点与leave埋点desc
parent
181f5b4f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
3 deletions
+59
-3
AudioHomeActivity.kt
m-audioim/src/main/java/com/ydl/audioim/AudioHomeActivity.kt
+9
-2
AudioApiRequestUtil.kt
m-audioim/src/main/java/com/ydl/audioim/http/AudioApiRequestUtil.kt
+42
-0
ConsultantAudioHomeActivity.kt
m-audioim/src/main/java/com/ydl/consultantim/ConsultantAudioHomeActivity.kt
+8
-1
No files found.
m-audioim/src/main/java/com/ydl/audioim/AudioHomeActivity.kt
View file @
d00d0e19
...
...
@@ -1253,7 +1253,6 @@ class AudioHomeActivity :
}
})
YDLavManager
.
instances
.
callEndStatusUpdate
(
channelId
!!
,
51
,
"接通中:主叫主动切换AXB"
)
}
else
{
mPresenter
.
getAXBPhone
(
ConnectCommand
(
listenId
!!
,
"1"
))
...
...
@@ -1271,6 +1270,7 @@ class AudioHomeActivity :
//通话结束或挂断时,上传日志文件
uploadLog
()
//已经连接成功,切换axb时需要更新专家状态
YDLavManager
.
instances
.
callEndStatusUpdate
(
channelId
!!
,
51
,
"接通中:主叫主动切换AXB"
)
updateExpertStatus
(
true
,
1
)
}
else
{
//未连接成功,切换axb时:需发送消息通知专家端用户已挂断
...
...
@@ -1535,7 +1535,14 @@ class AudioHomeActivity :
// 声网离开房间
if
(
reason
in
0
..
11
)
{
val
from
=
LeaveChannelReason
.
getFrom
(
reason
)
AudioApiRequestUtil
.
reportCallEvent
(
channelId
,
RtcEvent
(
RtcEvent
.
Event
.
leave
),
retCode
=
from
,
errorCode
=
reason
)
val
desc
=
LeaveChannelReason
.
getDesc
(
reason
)
AudioApiRequestUtil
.
reportCallEvent
(
channelId
,
RtcEvent
(
RtcEvent
.
Event
.
leave
),
retCode
=
from
,
errorCode
=
reason
,
errorReason
=
desc
)
}
else
{
XLog
.
e
(
"audiohomeActivity"
,
"leaveChannel$reason"
)
}
...
...
m-audioim/src/main/java/com/ydl/audioim/http/AudioApiRequestUtil.kt
View file @
d00d0e19
...
...
@@ -255,5 +255,47 @@ object LeaveChannelReason {
else
->
1
}
}
fun
getDesc
(
reason
:
Int
):
String
{
return
when
(
reason
)
{
0
->
{
"正常leave"
}
1
->
{
"拒绝"
}
2
->
{
"取消呼叫"
}
3
->
{
"对方已掉线"
}
4
->
{
"对方已离开"
}
5
->
{
"转axb"
}
6
->
{
"被叫接听超时"
}
7
->
{
"通话时间用完"
}
8
->
{
"加入通道超时"
}
9
->
{
"声网Error"
}
10
->
{
"网络连接被服务器禁止"
}
else
->
{
""
}
}
}
}
m-audioim/src/main/java/com/ydl/consultantim/ConsultantAudioHomeActivity.kt
View file @
d00d0e19
...
...
@@ -1108,7 +1108,14 @@ class ConsultantAudioHomeActivity :
connectingStatusDisposable
?.
dispose
()
if
(
reason
in
0
..
11
)
{
val
from
=
LeaveChannelReason
.
getFrom
(
reason
)
AudioApiRequestUtil
.
reportCallEvent
(
mAudioMessageBean
?.
channelId
,
RtcEvent
(
RtcEvent
.
Event
.
leave
),
retCode
=
from
,
errorCode
=
reason
)
val
desc
=
LeaveChannelReason
.
getDesc
(
reason
)
AudioApiRequestUtil
.
reportCallEvent
(
mAudioMessageBean
?.
channelId
,
RtcEvent
(
RtcEvent
.
Event
.
leave
),
retCode
=
from
,
errorCode
=
reason
,
errorReason
=
desc
)
}
else
{
XLog
.
e
(
"audiohomeActivity"
,
"leaveChannel$reason"
)
}
...
...
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