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
127546cb
Commit
127546cb
authored
Oct 28, 2020
by
YKai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:拨打电话日志优化
parent
368becce
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletions
+18
-1
AudioHomeActivity.kt
m-audioim/src/main/java/com/ydl/audioim/AudioHomeActivity.kt
+6
-0
YDLavManager.kt
m-audioim/src/main/java/com/ydl/audioim/YDLavManager.kt
+11
-0
ConfideWebServiceImpl.kt
m-confide/src/main/java/com/ydl/confide/home/modular/service/ConfideWebServiceImpl.kt
+1
-1
No files found.
m-audioim/src/main/java/com/ydl/audioim/AudioHomeActivity.kt
View file @
127546cb
...
...
@@ -1212,6 +1212,12 @@ class AudioHomeActivity :
leaveChannel
()
}
override
fun
onStop
()
{
writeAgoraLog
(
"用户切到后台,可能要杀死进程"
)
uploadLog
()
super
.
onStop
()
}
override
fun
onDestroy
()
{
super
.
onDestroy
()
uploadLog
()
...
...
m-audioim/src/main/java/com/ydl/audioim/YDLavManager.kt
View file @
127546cb
...
...
@@ -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
)
...
...
m-confide/src/main/java/com/ydl/confide/home/modular/service/ConfideWebServiceImpl.kt
View file @
127546cb
...
...
@@ -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
)
{
//支付弹窗
...
...
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