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
8b670006
Commit
8b670006
authored
Oct 29, 2020
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修改专家挂断,用户界面没有销毁BUG,导致后台记录时长异常。增加dialStatus专家状态日志。
parent
e9924424
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
7 deletions
+16
-7
config.gradle
config.gradle
+4
-4
AudioHomeActivity.kt
m-audioim/src/main/java/com/ydl/audioim/AudioHomeActivity.kt
+11
-3
IntentConstants.java
m-audioim/src/main/java/com/ydl/audioim/IntentConstants.java
+1
-0
ConfideWebServiceImpl.kt
m-confide/src/main/java/com/ydl/confide/home/modular/service/ConfideWebServiceImpl.kt
+0
-0
No files found.
config.gradle
View file @
8b670006
...
...
@@ -5,7 +5,7 @@ ext {
ydlPublishVersion
=
[
// -------------- 业务模块 --------------
//第三步 若干
"m-confide"
:
"0.0.48.8
1
"
,
"m-confide"
:
"0.0.48.8
2
"
,
"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
3
"
,
"m-audioim"
:
"0.0.49.29.1
4
"
,
"ydl-flutter-base"
:
"0.0.14.20"
,
//以下 几乎不会动
...
...
@@ -89,7 +89,7 @@ ext {
// -------------- 业务模块 --------------
//第三步 若干
"m-confide"
:
"0.0.48.8
1
"
,
"m-confide"
:
"0.0.48.8
2
"
,
"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
3
"
,
"m-audioim"
:
"0.0.49.29.1
4
"
,
"ydl-flutter-base"
:
"0.0.14.20"
,
//以下 几乎不会动
...
...
m-audioim/src/main/java/com/ydl/audioim/AudioHomeActivity.kt
View file @
8b670006
...
...
@@ -193,6 +193,11 @@ class AudioHomeActivity :
private
var
hasUpLoadLog
=
false
private
var
callStatus
:
Int
=
-
1
/**
* dialStatus 专家通话状态。
*/
private
var
dialStatus
:
String
?
=
null
/**
* 声网事件回调 (SDK 通过指定的事件通知应用程序 SDK 的运行事件,如: 加入或离开频道,新用户加入频道等)
...
...
@@ -326,8 +331,8 @@ class AudioHomeActivity :
super
.
onConnectionStateChanged
(
state
,
reason
)
// 3 网络连接被服务器中止 该情况现在是因为后端踢人逻辑
if
(
reason
==
3
)
{
writeAgoraLog
(
"通话结束:原因(${reason})"
)
com
.
yidianling
.
common
.
tools
.
ToastUtil
.
toastShort
(
"专家已挂断"
)
writeAgoraLog
(
"通话结束:
网络连接被服务器中止 该情况现在是因为后端踢人逻辑,
原因(${reason})"
)
//
com.yidianling.common.tools.ToastUtil.toastShort("专家已挂断")
//通话结束或挂断时,上传日志文件
uploadLog
()
leaveChannel
()
...
...
@@ -355,7 +360,8 @@ class AudioHomeActivity :
//通话结束或挂断时,上传日志文件
uploadLog
()
showToast
(
"专家已挂断"
)
//UserOffLine之后,销毁界面,解决,userOffline有回调之后,onConnectionStateChanged(服务端踢人方法没有调),导致记录时长异常。
leaveChannel
()
YDLavManager
.
instances
.
callEndStatusUpdate
(
channelId
!!
,
4
,
"对方离开频道"
)
if
(
totalDisposable
!=
null
)
{
...
...
@@ -477,6 +483,8 @@ class AudioHomeActivity :
listenerUid
=
intent
.
getStringExtra
(
IntentConstants
.
INTENT_LISTENER_UID
)
listenId
=
intent
.
getStringExtra
(
IntentConstants
.
INTENT_LISTEN_ID
)
commentUrl
=
intent
.
getStringExtra
(
IntentConstants
.
INTENT_COMMENT_URL
)
dialStatus
=
intent
.
getStringExtra
(
IntentConstants
.
INTENT_DIALSTATUS
)
writeAgoraLog
(
"专家的通话状态dialStatus:$dialStatus"
,
isAppend
=
false
)
isShowAXB
=
intent
.
getBooleanExtra
(
IntentConstants
.
INTENT_ISSHOWAXB
,
true
)
val
logBean
=
AgoraLogInfoBean
(
...
...
m-audioim/src/main/java/com/ydl/audioim/IntentConstants.java
View file @
8b670006
...
...
@@ -22,4 +22,5 @@ public interface IntentConstants {
String
INTENT_LISTEN_ID
=
"intent_listen_id"
;
String
INTENT_COMMENT_URL
=
"intent_comment_url"
;
String
INTENT_ISSHOWAXB
=
"intent_isshowaxb"
;
String
INTENT_DIALSTATUS
=
"intent_dialstatus"
;
}
m-confide/src/main/java/com/ydl/confide/home/modular/service/ConfideWebServiceImpl.kt
View file @
8b670006
This diff is collapsed.
Click to expand it.
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