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
f57d02bd
Commit
f57d02bd
authored
May 15, 2020
by
严久程
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
进入私聊页面逻辑
parent
d7080778
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
3 deletions
+31
-3
config.gradle
config.gradle
+3
-3
IMChatUtil.kt
m-im/src/main/java/com/yidianling/im/helper/IMChatUtil.kt
+19
-0
IMServiceImpl.kt
m-im/src/main/java/com/yidianling/im/modular/service/IMServiceImpl.kt
+4
-0
IImService.kt
m-im/src/main/modular_api/com/yidianling/im/api/service/IImService.kt
+3
-0
H5JsBean.kt
ydl-webview/src/main/java/com/ydl/webview/H5JsBean.kt
+2
-0
No files found.
config.gradle
View file @
f57d02bd
...
...
@@ -10,7 +10,7 @@ ext {
"m-fm"
:
"0.0.29.9"
,
"m-user"
:
"0.0.60.10"
,
"m-home"
:
"0.0.22.3"
,
"m-im"
:
"0.0.18.
7
"
,
"m-im"
:
"0.0.18.
8
"
,
"m-dynamic"
:
"0.0.7.7"
,
"m-article"
:
"0.0.0.5"
,
...
...
@@ -28,7 +28,7 @@ ext {
"m-tests-api"
:
"0.0.2"
,
"m-user-api"
:
"0.0.10.15"
,
"m-home-api"
:
"0.0.4.1"
,
"m-im-api"
:
"0.0.12.2
0
"
,
"m-im-api"
:
"0.0.12.2
1
"
,
"m-dynamic-api"
:
"0.0.3.7"
,
//-------------- 功能组件 --------------
...
...
@@ -36,7 +36,7 @@ ext {
"ydl-platform"
:
"0.0.39.26"
,
//第二步 若干
"ydl-webview"
:
"0.0.38.3
1
"
,
"ydl-webview"
:
"0.0.38.3
2
"
,
"ydl-media"
:
"0.0.21.6"
,
"ydl-pay"
:
"0.0.18.9"
,
"m-audioim"
:
"0.0.49.28"
,
...
...
m-im/src/main/java/com/yidianling/im/helper/IMChatUtil.kt
View file @
f57d02bd
...
...
@@ -156,6 +156,25 @@ object IMChatUtil {
)
}
fun
startChatCloseReplaceChat
(
context
:
AppCompatActivity
,
toUid
:
String
){
if
(!
isLogin
(
context
,
true
))
{
return
}
if
(
loadingDialog
==
null
)
{
loadingDialog
=
newInstance
(
null
)
}
if
(
context
.
supportFragmentManager
!=
null
&&
!
context
.
isDestroyed
)
{
loadingDialog
?.
show
(
context
.
supportFragmentManager
,
null
)
}
prepareChatData
(
context
,
toUid
,
object
:
ChatDataRequestListener
{
override
fun
onSuccess
(
expertInfo
:
IMExpertBuild
)
{
startChatSession
(
toUid
,
expertInfo
,
0
,
context
)
}
})
}
/**
* 开启聊天会话
*/
...
...
m-im/src/main/java/com/yidianling/im/modular/service/IMServiceImpl.kt
View file @
f57d02bd
...
...
@@ -210,6 +210,10 @@ class IMServiceImpl : IImService {
IMChatUtil
.
startChat
(
context
as
AppCompatActivity
,
toUid
,
isFramQingsu
)
}
override
fun
startChatCloseReplaceChat
(
context
:
Activity
,
toUid
:
String
)
{
IMChatUtil
.
startChatCloseReplaceChat
(
context
as
AppCompatActivity
,
toUid
)
}
override
fun
getUnReadByUid
(
uid
:
String
):
Int
{
return
MsgReceiveHelper
.
getUnNum
(
uid
)
}
...
...
m-im/src/main/modular_api/com/yidianling/im/api/service/IImService.kt
View file @
f57d02bd
...
...
@@ -60,6 +60,9 @@ interface IImService : IProvider {
fun
startChat
(
context
:
Activity
,
toUid
:
String
,
flag
:
Int
,
canTalk
:
Int
,
isFramQingsu
:
Int
,
isFromMessageList
:
Boolean
)
fun
startChatCloseReplaceChat
(
context
:
Activity
,
toUid
:
String
)
/**
* 根据对方uid获取未读数
*/
...
...
ydl-webview/src/main/java/com/ydl/webview/H5JsBean.kt
View file @
f57d02bd
...
...
@@ -133,6 +133,8 @@ class H5JsBean {
var
callType
:
String
?=
null
var
switchStatus
=
1
var
closeReplaceChat
=
false
}
}
}
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