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
0060ff3d
Commit
0060ff3d
authored
Apr 06, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat : 触发云信通知接口埋点
parent
0b7fdfae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
72 additions
and
21 deletions
+72
-21
AudioHomeActivity.kt
m-audioim/src/main/java/com/ydl/audioim/AudioHomeActivity.kt
+2
-0
AudioHomePresenterImpl.kt
m-audioim/src/main/java/com/ydl/audioim/presenter/AudioHomePresenterImpl.kt
+70
-21
No files found.
m-audioim/src/main/java/com/ydl/audioim/AudioHomeActivity.kt
View file @
0060ff3d
...
...
@@ -1150,6 +1150,8 @@ class AudioHomeActivity :
}
else
{
cmd
.
status
=
"CALL_OFF"
}
AliYunRichLogsHelper
.
getInstance
()
.
sendRichLog
(
AliYunLogConfig
.
AGORA
,
"用户加入频道后,通知服务端发送推送"
)
mPresenter
.
noticeServerPush
(
cmd
)
}
...
...
m-audioim/src/main/java/com/ydl/audioim/presenter/AudioHomePresenterImpl.kt
View file @
0060ff3d
...
...
@@ -2,14 +2,17 @@ package com.ydl.audioim.presenter
import
android.annotation.SuppressLint
import
com.ydl.audioim.BuildConfig
import
com.ydl.ydl_av.chat.config.YDLChatParam
import
com.ydl.audioim.contract.IAudioHomeActivityContract
import
com.ydl.audioim.http.command.*
import
com.ydl.audioim.http.command.ConnectCommand
import
com.ydl.audioim.http.command.NoticePushCommand
import
com.ydl.audioim.model.AudioHomeModelImpl
import
com.ydl.audioim.utils.AudioLogUtils
import
com.ydl.ydl_av.chat.config.YDLChatParam
import
com.ydl.ydlcommon.mvp.base.BasePresenter
import
com.ydl.ydlcommon.router.YdlCommonRouterManager
import
com.ydl.ydlcommon.utils.LogUtil
import
com.ydl.ydlcommon.utils.log.AliYunLogConfig
import
com.ydl.ydlcommon.utils.log.AliYunRichLogsHelper
import
com.ydl.ydlcommon.utils.log.LogHelper
import
com.ydl.ydlcommon.utils.remind.ToastHelper
import
io.reactivex.android.schedulers.AndroidSchedulers
...
...
@@ -113,30 +116,55 @@ class AudioHomePresenterImpl :
if
(
it
.
data
?.
dialDetail
?.
callConnectType
?:
-
1
==
1
)
{
//axb
mView
.
switchAXBResponse
(
it
.
data
?.
dialDetail
?.
phoneNu
?:
""
)
AudioLogUtils
.
writeAgoraLog
(
"连接成功,连接状态:${it.data?.dialDetail?.dialStatus}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time
)}
", "
confide
.
log
", true)
AudioLogUtils
.
writeAgoraLog
(
"连接成功,连接状态:${it.data?.dialDetail?.dialStatus}-------Time:${
AudioLogUtils
.
format
.
format
(
Calendar
.
getInstance
().
time
)
}
", "
confide
.
log
", true
)
}
else
{
ToastHelper
.
show
(
it
.
data
?.
dialDetail
?.
dialReason
?:
"连接失败"
)
AudioLogUtils
.
writeAgoraLog
(
"连接状态:${it.data?.dialDetail?.dialStatus}失败原因:${it.data?.dialDetail?.dialReason}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time
)}
", "
confide
.
log
", true)
AudioLogUtils
.
writeAgoraLog
(
"连接状态:${it.data?.dialDetail?.dialStatus}失败原因:${it.data?.dialDetail?.dialReason}-------Time:${
AudioLogUtils
.
format
.
format
(
Calendar
.
getInstance
().
time
)
}
", "
confide
.
log
", true
)
LogHelper
.
getInstance
().
uploadLog
(
false
)
}
}
else
{
ToastHelper
.
show
(
it
.
data
?.
dialDetail
?.
dialReason
?:
"连接失败"
)
AudioLogUtils
.
writeAgoraLog
(
"连接状态:${it.data?.dialDetail?.dialStatus}失败原因:${it.data?.dialDetail?.dialReason}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time
)}
", "
confide
.
log
", true)
AudioLogUtils
.
writeAgoraLog
(
"连接状态:${it.data?.dialDetail?.dialStatus}失败原因:${it.data?.dialDetail?.dialReason}-------Time:${
AudioLogUtils
.
format
.
format
(
Calendar
.
getInstance
().
time
)
}
", "
confide
.
log
", true
)
LogHelper
.
getInstance
().
uploadLog
(
false
)
}
}
else
{
ToastHelper
.
show
(
it
.
data
?.
dialDetail
?.
dialReason
?:
"连接失败"
)
AudioLogUtils
.
writeAgoraLog
(
"连接状态:${it.data?.dialDetail?.dialStatus}失败原因:${it.data?.dialDetail?.dialReason}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time
)}
", "
confide
.
log
", true)
AudioLogUtils
.
writeAgoraLog
(
"连接状态:${it.data?.dialDetail?.dialStatus}失败原因:${it.data?.dialDetail?.dialReason}-------Time:${
AudioLogUtils
.
format
.
format
(
Calendar
.
getInstance
().
time
)
}
", "
confide
.
log
", true
)
LogHelper
.
getInstance
().
uploadLog
(
false
)
}
},
{
e
->
LogUtil
.
d
(
e
.
message
)
AudioLogUtils
.
writeAgoraLog
(
"连接状态:${e.message}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time
)}
", "
confide
.
log
", true)
AudioLogUtils
.
writeAgoraLog
(
"连接状态:${e.message}-------Time:${
AudioLogUtils
.
format
.
format
(
Calendar
.
getInstance
().
time
)
}
", "
confide
.
log
", true
)
LogHelper
.
getInstance
().
uploadLog
(
false
)
})
}
...
...
@@ -152,25 +180,46 @@ class AudioHomePresenterImpl :
.
subscribe
({
if
(
it
.
code
==
200
)
{
AudioLogUtils
.
writeAgoraLog
(
"通知服务端发送推送成功-------Time:${AudioLogUtils.format.format(
Calendar
.
getInstance
().
time
)}
", "
confide
.
log
", true
"通知服务端发送推送成功-------Time:${
AudioLogUtils
.
format
.
format
(
Calendar
.
getInstance
().
time
)
}
", "
confide
.
log
", true
)
AliYunRichLogsHelper
.
getInstance
()
.
sendRichLog
(
AliYunLogConfig
.
AGORA
,
"通知服务端发送推送成功-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}"
)
}
else
{
LogUtil
.
e
(
it
.
msg
)
AudioLogUtils
.
writeAgoraLog
(
"通知服务端发送推送失败${it.msg}-------Time:${AudioLogUtils.format.format(
Calendar
.
getInstance
().
time
)}
", "
confide
.
log
", true
"通知服务端发送推送失败${it.msg}-------Time:${
AudioLogUtils
.
format
.
format
(
Calendar
.
getInstance
().
time
)
}
", "
confide
.
log
", true
)
AliYunRichLogsHelper
.
getInstance
()
.
sendRichLog
(
AliYunLogConfig
.
AGORA
,
"通知服务端发送推送失败${it.msg}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}"
)
LogHelper
.
getInstance
().
uploadLog
(
false
)
}
},
{
e
->
AudioLogUtils
.
writeAgoraLog
(
"通知服务端发送推送失败${e.message}-------Time:${AudioLogUtils.format.format(
Calendar
.
getInstance
().
time
)}
", "
confide
.
log
", true
"通知服务端发送推送失败${e.message}-------Time:${
AudioLogUtils
.
format
.
format
(
Calendar
.
getInstance
().
time
)
}
", "
confide
.
log
", true
)
AliYunRichLogsHelper
.
getInstance
()
.
sendRichLog
(
AliYunLogConfig
.
AGORA
,
"通知服务端发送推送失败${e.message}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}"
)
LogHelper
.
getInstance
().
uploadLog
(
false
)
LogUtil
.
e
(
e
.
message
)
})
...
...
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