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
778b80ec
Commit
778b80ec
authored
Oct 20, 2020
by
YKai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:用户日志升级
parent
cdffe714
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
12 deletions
+18
-12
config.gradle
config.gradle
+3
-3
AudioHomeActivity.kt
m-audioim/src/main/java/com/ydl/audioim/AudioHomeActivity.kt
+3
-0
ConsultantAudioHomeActivity.kt
m-audioim/src/main/java/com/ydl/consultantim/ConsultantAudioHomeActivity.kt
+12
-9
No files found.
config.gradle
View file @
778b80ec
...
...
@@ -5,7 +5,7 @@ ext {
ydlPublishVersion
=
[
// -------------- 业务模块 --------------
//第三步 若干
"m-confide"
:
"0.0.48.7
7
"
,
"m-confide"
:
"0.0.48.7
9
"
,
"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.
9
"
,
"m-audioim"
:
"0.0.49.29.
11
"
,
"ydl-flutter-base"
:
"0.0.14.19"
,
//以下 几乎不会动
...
...
@@ -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.
9
"
,
"m-audioim"
:
"0.0.49.29.
10
"
,
"ydl-flutter-base"
:
"0.0.14.19"
,
//以下 几乎不会动
...
...
m-audioim/src/main/java/com/ydl/audioim/AudioHomeActivity.kt
View file @
778b80ec
...
...
@@ -52,6 +52,7 @@ import com.ydl.ydlcommon.utils.Utils
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import
com.ydl.ydlcommon.utils.log.LogHelper
import
com.ydl.ydlcommon.utils.remind.ToastHelper
import
com.yidianling.common.tools.ToastUtil
import
com.yidianling.user.api.service.IUserService
import
de.greenrobot.event.EventBus
import
io.agora.rtc.Constants
...
...
@@ -507,6 +508,7 @@ class AudioHomeActivity :
}
private
fun
initView
()
{
writeAgoraLog
(
"用户拨打电话界面开启"
)
tv_change_route
.
isEnabled
=
false
//水波纹view初始化
wave_view
.
setDuration
(
6000
)
...
...
@@ -1210,6 +1212,7 @@ class AudioHomeActivity :
override
fun
onDestroy
()
{
super
.
onDestroy
()
ToastUtil
.
toastShort
(
"拨打电话界面销毁"
)
if
(
isConnectSuccess
)
{
uploadException
(
""
,
"zhu"
,
"108"
,
callback
=
null
)
}
...
...
m-audioim/src/main/java/com/ydl/consultantim/ConsultantAudioHomeActivity.kt
View file @
778b80ec
...
...
@@ -212,9 +212,9 @@ class ConsultantAudioHomeActivity :
writeAgoraLog
(
"通话挂断:网络连接被服务器(后端)中止"
)
//通话结束或挂断时,上传日志文件
uploadLog
()
leaveChannel
()
//todo
finish
(
)
//
leaveChannel()
// finish()
close
(
RESULT_ANSWERED_CODE
,
""
)
}
}
...
...
@@ -225,10 +225,8 @@ class ConsultantAudioHomeActivity :
override
fun
onLeaveChannel
(
stats
:
IRtcEngineEventHandler
.
RtcStats
?)
{
super
.
onLeaveChannel
(
stats
)
LogUtil
.
e
(
"[agora]自己离开频道回调"
)
runOnUiThread
{
//通知php 通话已结束
close
(
RESULT_ANSWERED_CODE
,
""
)
}
//通知php 通话已结束
close
(
RESULT_ANSWERED_CODE
,
""
)
}
/**
...
...
@@ -482,6 +480,7 @@ class ConsultantAudioHomeActivity :
iv_head
.
setBackgroundResource
(
R
.
drawable
.
audioim_head_place_hold_pic
)
}
tv_name
.
text
=
userName
writeAgoraLog
(
"用户接收电话界面开启"
)
}
private
fun
initData
()
{
...
...
@@ -649,7 +648,7 @@ class ConsultantAudioHomeActivity :
return
}
showStopService
()
writeAgoraLog
(
"用户点击挂断按钮"
)
ActionCountUtils
.
count
(
"shengwang_popup_layer_page|shengwang_popup_layer_refuse_click"
,
YdlCommonRouterManager
.
getYdlCommonRoute
().
getUid
().
toString
(),
...
...
@@ -947,7 +946,11 @@ class ConsultantAudioHomeActivity :
private
fun
writeAgoraLog
(
content
:
String
)
{
Observable
.
create
<
Any
>
{
try
{
AudioLogUtils
.
writeAgoraLog
(
"$content-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}"
,
"consult.log"
)
AudioLogUtils
.
writeAgoraLog
(
"$content-------Time:${AudioLogUtils.format.format(
Calendar
.
getInstance
().
time
)}
", "
consult
.
log
"
)
}
catch
(
e
:
Exception
)
{
}
}.
subscribeOn
(
Schedulers
.
io
()).
subscribe
()
...
...
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