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
dc9b8f34
Commit
dc9b8f34
authored
Sep 10, 2021
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:IM升级
parent
831dac7f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
10 deletions
+14
-10
config.gradle
config.gradle
+2
-2
YDLP2PMessageActivity.java
m-im/src/main/java/com/yidianling/uikit/business/session/activity/YDLP2PMessageActivity.java
+12
-8
No files found.
config.gradle
View file @
dc9b8f34
...
...
@@ -10,7 +10,7 @@ ext {
"m-fm"
:
"0.0.30.04"
,
"m-user"
:
"0.0.61.56"
,
"m-home"
:
"0.0.22.73"
,
"m-im"
:
"0.0.19.
79
"
,
"m-im"
:
"0.0.19.
80
"
,
"m-dynamic"
:
"0.0.7.29"
,
"m-article"
:
"0.0.0.10"
,
...
...
@@ -93,7 +93,7 @@ ext {
"m-fm"
:
"0.0.30.04"
,
"m-user"
:
"0.0.61.56"
,
"m-home"
:
"0.0.22.73"
,
"m-im"
:
"0.0.19.
79
"
,
"m-im"
:
"0.0.19.
80
"
,
"m-dynamic"
:
"0.0.7.29"
,
"m-article"
:
"0.0.0.8"
,
...
...
m-im/src/main/java/com/yidianling/uikit/business/session/activity/YDLP2PMessageActivity.java
View file @
dc9b8f34
...
...
@@ -132,14 +132,18 @@ public class YDLP2PMessageActivity extends YDLBaseMessageActivity {
ImObserversHelper
.
Companion
.
getInstance
().
setImCustomNotificationCallBack
(
new
IMRegisterObserverCustomNotificationCallBack
()
{
@Override
public
void
onObserverCustomNotification
(
@NotNull
String
fromUid
,
@NotNull
String
toUid
,
@NotNull
String
content
)
{
ServiceBean
serviceBean
=
new
Gson
().
fromJson
(
content
,
ServiceBean
.
class
);
// 切换到客服
if
(
serviceBean
!=
null
&&
serviceBean
.
getData
()
!=
null
&&
serviceBean
.
getBusiness
()!=
null
&&
serviceBean
.
getBusiness
().
equals
(
"change_doctor"
))
{
isChangeDoctor
=
true
;
String
serviceUid
=
String
.
valueOf
(
serviceBean
.
getData
().
getToUid
());
tb
.
setTitle
(
serviceBean
.
getData
().
getName
());
YDLP2PMessageActivity
.
startChangeDoctor
(
YDLP2PMessageActivity
.
this
,
serviceUid
,
SessionHelper
.
getP2pCustomization
(-
1
),
null
,
new
P2PCustomActionHandlerImpl
(
serviceUid
,
serviceBean
.
getData
().
getName
(),
serviceUid
));
}
try
{
ServiceBean
serviceBean
=
new
Gson
().
fromJson
(
content
,
ServiceBean
.
class
);
// 切换到客服
if
(
serviceBean
!=
null
&&
serviceBean
.
getData
()
!=
null
&&
serviceBean
.
getBusiness
()!=
null
&&
serviceBean
.
getBusiness
().
equals
(
"change_doctor"
))
{
isChangeDoctor
=
true
;
String
serviceUid
=
String
.
valueOf
(
serviceBean
.
getData
().
getToUid
());
tb
.
setTitle
(
serviceBean
.
getData
().
getName
());
YDLP2PMessageActivity
.
startChangeDoctor
(
YDLP2PMessageActivity
.
this
,
serviceUid
,
SessionHelper
.
getP2pCustomization
(-
1
),
null
,
new
P2PCustomActionHandlerImpl
(
serviceUid
,
serviceBean
.
getData
().
getName
(),
serviceUid
));
}
}
catch
(
Exception
e
){
com
.
ydl
.
ydlcommon
.
utils
.
LogUtil
.
e
(
"exception:"
+
e
.
getMessage
());
}
}
});
}
...
...
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