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
28dfcaa1
Commit
28dfcaa1
authored
Oct 29, 2020
by
YKai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:拨打电话日志优化,组件升级
parent
6b0cd2d7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
25 deletions
+25
-25
config.gradle
config.gradle
+4
-4
AudioHomeActivity.kt
m-audioim/src/main/java/com/ydl/audioim/AudioHomeActivity.kt
+1
-1
YDLavManager.kt
m-audioim/src/main/java/com/ydl/audioim/YDLavManager.kt
+8
-8
AudioHomePresenterImpl.kt
m-audioim/src/main/java/com/ydl/audioim/presenter/AudioHomePresenterImpl.kt
+8
-8
AudioLogUtils.kt
m-audioim/src/main/java/com/ydl/audioim/utils/AudioLogUtils.kt
+4
-4
No files found.
config.gradle
View file @
28dfcaa1
...
...
@@ -5,7 +5,7 @@ ext {
ydlPublishVersion
=
[
// -------------- 业务模块 --------------
//第三步 若干
"m-confide"
:
"0.0.48.8
4
"
,
"m-confide"
:
"0.0.48.8
5
"
,
"m-consultant"
:
"0.0.59.36"
,
"m-fm"
:
"0.0.30.00"
,
"m-user"
:
"0.0.60.34"
,
...
...
@@ -40,7 +40,7 @@ ext {
"ydl-webview"
:
"0.0.38.33"
,
"ydl-media"
:
"0.0.21.6"
,
"ydl-pay"
:
"0.0.18.13"
,
"m-audioim"
:
"0.0.49.29.1
6
"
,
"m-audioim"
:
"0.0.49.29.1
7
"
,
"ydl-flutter-base"
:
"0.0.14.20"
,
//以下 几乎不会动
...
...
@@ -89,7 +89,7 @@ ext {
// -------------- 业务模块 --------------
//第三步 若干
"m-confide"
:
"0.0.48.8
4
"
,
"m-confide"
:
"0.0.48.8
5
"
,
"m-consultant"
:
"0.0.51.16"
,
"m-fm"
:
"0.0.23.5"
,
"m-user"
:
"0.0.41.13"
,
...
...
@@ -121,7 +121,7 @@ ext {
"ydl-webview"
:
"0.0.38.32"
,
"ydl-media"
:
"0.0.21.6"
,
"ydl-pay"
:
"0.0.18.11"
,
"m-audioim"
:
"0.0.49.29.1
6
"
,
"m-audioim"
:
"0.0.49.29.1
7
"
,
"ydl-flutter-base"
:
"0.0.14.20"
,
//以下 几乎不会动
...
...
m-audioim/src/main/java/com/ydl/audioim/AudioHomeActivity.kt
View file @
28dfcaa1
...
...
@@ -485,7 +485,7 @@ class AudioHomeActivity :
listenId
=
intent
.
getStringExtra
(
IntentConstants
.
INTENT_LISTEN_ID
)
commentUrl
=
intent
.
getStringExtra
(
IntentConstants
.
INTENT_COMMENT_URL
)
dialStatus
=
intent
.
getStringExtra
(
IntentConstants
.
INTENT_DIALSTATUS
)
writeAgoraLog
(
"专家的通话状态dialStatus:$dialStatus"
,
isAppend
=
fals
e
)
writeAgoraLog
(
"专家的通话状态dialStatus:$dialStatus"
,
tru
e
)
isShowAXB
=
intent
.
getBooleanExtra
(
IntentConstants
.
INTENT_ISSHOWAXB
,
true
)
val
logBean
=
AgoraLogInfoBean
(
...
...
m-audioim/src/main/java/com/ydl/audioim/YDLavManager.kt
View file @
28dfcaa1
...
...
@@ -231,9 +231,9 @@ class YDLavManager {
override
fun
onOtherMsg
(
error
:
String
?)
{
LogUtil
.
e
(
"[agora]其它消息:${error}"
)
if
(
error
.
equals
(
"呼叫发送成功"
)){
writeAgoraLog
(
"声网发送通话邀请成功-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}"
,
"confide.log"
)
writeAgoraLog
(
"声网发送通话邀请成功-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}"
,
"confide.log"
,
true
)
}
else
{
writeAgoraLog
(
"声网发送通话邀请失败${error}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}"
,
"confide.log"
)
writeAgoraLog
(
"声网发送通话邀请失败${error}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}"
,
"confide.log"
,
true
)
LogHelper
.
getInstance
().
uploadLog
(
false
)
}
}
...
...
@@ -343,17 +343,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)}"
,
"confide.log"
,
fals
e
)
writeAgoraLog
(
"云信发送通话邀请异常${throwable.message}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}"
,
"confide.log"
,
tru
e
)
LogHelper
.
getInstance
().
uploadLog
(
false
)
}
override
fun
onFailed
(
code
:
Int
)
{
writeAgoraLog
(
"云信发送通话邀请失败${code}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}"
,
"confide.log"
,
fals
e
)
writeAgoraLog
(
"云信发送通话邀请失败${code}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}"
,
"confide.log"
,
tru
e
)
LogHelper
.
getInstance
().
uploadLog
(
false
)
}
override
fun
onSuccess
()
{
writeAgoraLog
(
"云信发送通话邀请成功-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}"
,
"confide.log"
,
fals
e
)
writeAgoraLog
(
"云信发送通话邀请成功-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}"
,
"confide.log"
,
tru
e
)
}
})
},
300
)
...
...
@@ -384,13 +384,13 @@ class YDLavManager {
override
fun
onSuccess
()
{
//登陆成功,发起呼叫
LogUtil
.
e
(
"[agora]实时消息登录成功"
)
writeAgoraLog
(
"声网rtm登录成功
$userId-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}"
,
"confide.log"
,
fals
e
)
writeAgoraLog
(
"声网rtm登录成功
,uid:$userId-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}"
,
"confide.log"
,
tru
e
)
event
(
true
,
""
)
}
override
fun
onFailure
(
msg
:
String
?)
{
LogUtil
.
e
(
"[agora]实时消息登录失败:$msg"
)
writeAgoraLog
(
"声网rtm登录失败:$msg-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}"
,
"confide.log"
,
fals
e
)
writeAgoraLog
(
"声网rtm登录失败:$msg-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}"
,
"confide.log"
,
tru
e
)
event
(
false
,
msg
)
}
})
...
...
@@ -529,7 +529,7 @@ class YDLavManager {
override
fun
onConnectionStateChanged
(
state
:
Int
,
reason
:
Int
)
{
sdkStatus
=
state
writeAgoraLog
(
"声网rtm登录状态:${state}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}"
,
"confide.log"
,
fals
e
)
writeAgoraLog
(
"声网rtm登录状态:${state}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}"
,
"confide.log"
,
tru
e
)
LogUtil
.
i
(
"[agora]onConnectionStateChanged:state:${state} -->reason:$reason"
)
}
}
...
...
m-audioim/src/main/java/com/ydl/audioim/presenter/AudioHomePresenterImpl.kt
View file @
28dfcaa1
...
...
@@ -114,29 +114,29 @@ class AudioHomePresenterImpl :
//axb
mView
.
switchAXBResponse
(
it
.
data
?.
dialDetail
?.
phoneNu
?:
""
)
AudioLogUtils
.
writeAgoraLog
(
"连接成功,连接状态:${it.data?.dialDetail?.dialStatus}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time
)}
", "
confide
.
log
",
fals
e)
)}
", "
confide
.
log
",
tru
e)
}
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
",
fals
e)
)}
", "
confide
.
log
",
tru
e)
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
",
fals
e)
)}
", "
confide
.
log
",
tru
e)
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
",
fals
e)
)}
", "
confide
.
log
",
tru
e)
LogHelper
.
getInstance
().
uploadLog
(
false
)
}
},
{
e
->
LogUtil
.
d
(
e
.
message
)
AudioLogUtils
.
writeAgoraLog
(
"连接状态:${e.message}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time
)}
", "
confide
.
log
",
fals
e)
)}
", "
confide
.
log
",
tru
e)
LogHelper
.
getInstance
().
uploadLog
(
false
)
})
}
...
...
@@ -154,14 +154,14 @@ class AudioHomePresenterImpl :
AudioLogUtils
.
writeAgoraLog
(
"通知服务端发送推送成功-------Time:${AudioLogUtils.format.format(
Calendar
.
getInstance
().
time
)}
", "
confide
.
log
",
fals
e
)}
", "
confide
.
log
",
tru
e
)
}
else
{
LogUtil
.
e
(
it
.
msg
)
AudioLogUtils
.
writeAgoraLog
(
"通知服务端发送推送失败${it.msg}-------Time:${AudioLogUtils.format.format(
Calendar
.
getInstance
().
time
)}
", "
confide
.
log
",
fals
e
)}
", "
confide
.
log
",
tru
e
)
LogHelper
.
getInstance
().
uploadLog
(
false
)
}
...
...
@@ -169,7 +169,7 @@ class AudioHomePresenterImpl :
AudioLogUtils
.
writeAgoraLog
(
"通知服务端发送推送失败${e.message}-------Time:${AudioLogUtils.format.format(
Calendar
.
getInstance
().
time
)}
", "
confide
.
log
",
fals
e
)}
", "
confide
.
log
",
tru
e
)
LogHelper
.
getInstance
().
uploadLog
(
false
)
LogUtil
.
e
(
e
.
message
)
...
...
m-audioim/src/main/java/com/ydl/audioim/utils/AudioLogUtils.kt
View file @
28dfcaa1
...
...
@@ -54,10 +54,10 @@ class AudioLogUtils {
if
(!
isAppend
)
{
writer
.
write
(
"----------------"
)
writer
.
newLine
()
writer
.
write
(
"""Time:${format.format(Calendar.getInstance().time)}"""
)
writer
.
newLine
()
writer
.
write
(
"ExpertUid = ${ModularServiceManager.getPlatformUserService()?.getUser()?.userId}"
)
writer
.
newLine
()
//
writer.write("""Time:${format.format(Calendar.getInstance().time)}""")
//
writer.newLine()
//
writer.write("ExpertUid = ${ModularServiceManager.getPlatformUserService()?.getUser()?.userId}")
//
writer.newLine()
writer
.
write
(
"""Network:${RxNetTool.getNetWorkTypeName(BaseApp.getApp())}"""
)
writer
.
newLine
()
writer
.
write
(
"""DevicesInfo:${RxDeviceTool.getBuildBrandModel()},${RxDeviceTool.getSDKVersionName()}"""
)
...
...
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