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
ca1d57b5
Commit
ca1d57b5
authored
Nov 24, 2021
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat : IM区分用户类型2、3
parent
d8462f95
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
69 additions
and
47 deletions
+69
-47
config.gradle
config.gradle
+2
-2
IMChatUtil.kt
m-im/src/main/java/com/yidianling/im/helper/IMChatUtil.kt
+2
-2
SessionHelper.java
m-im/src/main/java/com/yidianling/im/session/SessionHelper.java
+6
-3
YDLMessageFragment.java
m-im/src/main/java/com/yidianling/uikit/business/session/fragment/YDLMessageFragment.java
+56
-40
IP2PCustomActionHandler.java
m-im/src/main/java/com/yidianling/uikit/custom/bridge/IP2PCustomActionHandler.java
+3
-0
medical_check_bottom_right.png
m-im/src/main/res/mipmap-xhdpi/medical_check_bottom_right.png
+0
-0
No files found.
config.gradle
View file @
ca1d57b5
...
@@ -10,7 +10,7 @@ ext {
...
@@ -10,7 +10,7 @@ ext {
"m-fm"
:
"0.0.30.03"
,
"m-fm"
:
"0.0.30.03"
,
"m-user"
:
"0.0.61.84"
,
"m-user"
:
"0.0.61.84"
,
"m-home"
:
"0.0.22.70"
,
"m-home"
:
"0.0.22.70"
,
"m-im"
:
"0.0.20.
38
"
,
"m-im"
:
"0.0.20.
41
"
,
"m-dynamic"
:
"0.0.7.28"
,
"m-dynamic"
:
"0.0.7.28"
,
"m-article"
:
"0.0.0.10"
,
"m-article"
:
"0.0.0.10"
,
...
@@ -94,7 +94,7 @@ ext {
...
@@ -94,7 +94,7 @@ ext {
"m-fm"
:
"0.0.30.01"
,
"m-fm"
:
"0.0.30.01"
,
"m-user"
:
"0.0.61.84"
,
"m-user"
:
"0.0.61.84"
,
"m-home"
:
"0.0.22.70"
,
"m-home"
:
"0.0.22.70"
,
"m-im"
:
"0.0.20.
38
"
,
"m-im"
:
"0.0.20.
41
"
,
"m-dynamic"
:
"0.0.7.28"
,
"m-dynamic"
:
"0.0.7.28"
,
"m-article"
:
"0.0.0.8"
,
"m-article"
:
"0.0.0.8"
,
...
...
m-im/src/main/java/com/yidianling/im/helper/IMChatUtil.kt
View file @
ca1d57b5
...
@@ -144,7 +144,7 @@ object IMChatUtil {
...
@@ -144,7 +144,7 @@ object IMChatUtil {
fun
startChat
(
context
:
AppCompatActivity
?,
chatItemBean
:
ChatItemBean
)
{
fun
startChat
(
context
:
AppCompatActivity
?,
chatItemBean
:
ChatItemBean
)
{
SessionHelper
.
startP2PSession
(
SessionHelper
.
startP2PSession
(
context
,
context
,
3
,
chatItemBean
.
utype
,
chatItemBean
.
toUid
.
toString
(),
chatItemBean
.
toUid
.
toString
(),
null
,
null
,
P2PCustomActionHandlerImpl
(
chatItemBean
)
P2PCustomActionHandlerImpl
(
chatItemBean
)
...
@@ -254,7 +254,7 @@ object IMChatUtil {
...
@@ -254,7 +254,7 @@ object IMChatUtil {
p2PCustomActionHandlerImpl
.
isFromQingShu
=
isFromQingShu
p2PCustomActionHandlerImpl
.
isFromQingShu
=
isFromQingShu
SessionHelper
.
startP2PSession
(
SessionHelper
.
startP2PSession
(
context
,
context
,
3
,
expertInfo
.
shareData
.
user_type
,
toUid
,
toUid
,
null
,
null
,
p2PCustomActionHandlerImpl
p2PCustomActionHandlerImpl
...
...
m-im/src/main/java/com/yidianling/im/session/SessionHelper.java
View file @
ca1d57b5
...
@@ -32,7 +32,6 @@ import com.yidianling.im.http.ImRetrofitApi;
...
@@ -32,7 +32,6 @@ import com.yidianling.im.http.ImRetrofitApi;
import
com.yidianling.im.router.ImIn
;
import
com.yidianling.im.router.ImIn
;
import
com.yidianling.im.session.action.AVChatAction
;
import
com.yidianling.im.session.action.AVChatAction
;
import
com.yidianling.im.session.action.H5VideoAction
;
import
com.yidianling.im.session.action.H5VideoAction
;
import
com.yidianling.im.session.action.HelpAction
;
import
com.yidianling.im.session.action.MakeCollectionsAction
;
import
com.yidianling.im.session.action.MakeCollectionsAction
;
import
com.yidianling.im.session.action.OrderAction
;
import
com.yidianling.im.session.action.OrderAction
;
import
com.yidianling.im.session.action.RedPacketAction
;
import
com.yidianling.im.session.action.RedPacketAction
;
...
@@ -169,6 +168,10 @@ public class SessionHelper {
...
@@ -169,6 +168,10 @@ public class SessionHelper {
setSessionListener
();
setSessionListener
();
}
}
/**
* user_type 2 医生
* 3 导医
*/
public
static
void
startP2PSession
(
Context
context
,
int
user_type
,
String
account
,
IMMessage
anchor
,
IP2PCustomActionHandler
actionHandler
)
{
public
static
void
startP2PSession
(
Context
context
,
int
user_type
,
String
account
,
IMMessage
anchor
,
IP2PCustomActionHandler
actionHandler
)
{
LogHelper
.
Companion
.
getInstance
().
writeLogSync
(
"开启聊天:"
LogHelper
.
Companion
.
getInstance
().
writeLogSync
(
"开启聊天:"
+
"user_type = "
+
user_type
+
"user_type = "
+
user_type
...
@@ -233,8 +236,8 @@ public class SessionHelper {
...
@@ -233,8 +236,8 @@ public class SessionHelper {
/*
/*
* 通知服务端红点
* 通知服务端红点
* */
* */
private
static
void
notifyRedPoint
(
String
assistantUid
,
String
userId
)
{
private
static
void
notifyRedPoint
(
String
assistantUid
,
String
userId
)
{
String
str
=
new
Gson
().
toJson
(
new
BuryRedPointParam
(
assistantUid
,
userId
));
String
str
=
new
Gson
().
toJson
(
new
BuryRedPointParam
(
assistantUid
,
userId
));
RequestBody
body
=
RequestBody
.
create
(
MediaType
.
parse
(
"application/json; charset=utf-8"
),
str
);
RequestBody
body
=
RequestBody
.
create
(
MediaType
.
parse
(
"application/json; charset=utf-8"
),
str
);
Disposable
subscribe
=
ImRetrofitApi
.
Companion
.
getImRetrofitApi
().
imBuryRedPoints
(
body
)
Disposable
subscribe
=
ImRetrofitApi
.
Companion
.
getImRetrofitApi
().
imBuryRedPoints
(
body
)
.
compose
(
RxUtils
.
INSTANCE
.
resultJavaData
())
.
compose
(
RxUtils
.
INSTANCE
.
resultJavaData
())
...
...
m-im/src/main/java/com/yidianling/uikit/business/session/fragment/YDLMessageFragment.java
View file @
ca1d57b5
This diff is collapsed.
Click to expand it.
m-im/src/main/java/com/yidianling/uikit/custom/bridge/IP2PCustomActionHandler.java
View file @
ca1d57b5
...
@@ -78,6 +78,9 @@ public interface IP2PCustomActionHandler {
...
@@ -78,6 +78,9 @@ public interface IP2PCustomActionHandler {
void
pauseUm
(
Activity
activity
);
void
pauseUm
(
Activity
activity
);
/**
* 1:用户 2:医生 3:导医
* */
int
getUserType
();
int
getUserType
();
/**
/**
...
...
m-im/src/main/res/mipmap-xhdpi/medical_check_bottom_right.png
View replaced file @
d8462f95
View file @
ca1d57b5
769 Bytes
|
W:
|
H:
1.76 KB
|
W:
|
H:
2-up
Swipe
Onion skin
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