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
74624942
Commit
74624942
authored
Oct 28, 2020
by
YKai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:拨打电话日志优化
parent
ab6bbd97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
AudioHomePresenterImpl.kt
m-audioim/src/main/java/com/ydl/audioim/presenter/AudioHomePresenterImpl.kt
+7
-0
No files found.
m-audioim/src/main/java/com/ydl/audioim/presenter/AudioHomePresenterImpl.kt
View file @
74624942
...
...
@@ -10,6 +10,7 @@ import com.ydl.audioim.utils.AudioLogUtils
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.LogHelper
import
com.ydl.ydlcommon.utils.remind.ToastHelper
import
io.reactivex.android.schedulers.AndroidSchedulers
import
io.reactivex.schedulers.Schedulers
...
...
@@ -118,21 +119,25 @@ class AudioHomePresenterImpl :
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
", false)
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
", false)
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
", false)
LogHelper
.
getInstance
().
uploadLog
(
false
)
}
},
{
e
->
LogUtil
.
d
(
e
.
message
)
AudioLogUtils
.
writeAgoraLog
(
"连接状态:${e.message}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time
)}
", "
confide
.
log
", false)
LogHelper
.
getInstance
().
uploadLog
(
false
)
})
}
...
...
@@ -158,6 +163,7 @@ class AudioHomePresenterImpl :
Calendar
.
getInstance
().
time
)}
", "
confide
.
log
", false
)
LogHelper
.
getInstance
().
uploadLog
(
false
)
}
},
{
e
->
AudioLogUtils
.
writeAgoraLog
(
...
...
@@ -165,6 +171,7 @@ class AudioHomePresenterImpl :
Calendar
.
getInstance
().
time
)}
", "
confide
.
log
", false
)
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