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
2a4689d0
Commit
2a4689d0
authored
Aug 02, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 跳转客服问题修复
parent
97c1896d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
WVClickAbstractListener.java
app/src/main/java/com/ydl/component/service/web/WVClickAbstractListener.java
+16
-2
YDLP2PMessageActivity.java
m-im/src/main/java/com/yidianling/uikit/business/session/activity/YDLP2PMessageActivity.java
+1
-1
No files found.
app/src/main/java/com/ydl/component/service/web/WVClickAbstractListener.java
View file @
2a4689d0
...
...
@@ -58,7 +58,11 @@ public class WVClickAbstractListener implements WebViewClientClickListener {
@Override
public
void
contactYi
()
{
try
{
ModularServiceManager
.
INSTANCE
.
provide
(
IImService
.
class
)
.
startP2PSession
(
mContext
,
-
1
,
"14"
,
"14"
,
"客服小壹"
,
"14"
);
}
catch
(
Exception
e
)
{
}
}
@Override
...
...
@@ -108,7 +112,17 @@ public class WVClickAbstractListener implements WebViewClientClickListener {
@Override
public
void
chat
(
int
id
,
int
toUid
,
int
canTalk
,
String
accessToken
,
int
isFromQingShu
)
{
if
((
toUid
+
""
).
equals
(
"14"
))
{
//找客服私聊不需要积分
contactYi
();
}
else
{
try
{
ModularServiceManager
.
INSTANCE
.
provide
(
IImService
.
class
)
.
startChatCloseReplaceChat
(
mContext
,
String
.
valueOf
(
toUid
));
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
}
@Override
...
...
m-im/src/main/java/com/yidianling/uikit/business/session/activity/YDLP2PMessageActivity.java
View file @
2a4689d0
...
...
@@ -71,7 +71,7 @@ public class YDLP2PMessageActivity extends YDLBaseMessageActivity {
if
(
ActionHandlerStorage
.
getL
(
contactId
)
!=
null
)
{
intent
.
addFlags
(
Intent
.
FLAG_ACTIVITY_CLEAR_TOP
|
Intent
.
FLAG_ACTIVITY_SINGLE_TOP
);
}
else
if
(
contactId
.
equals
(
ImConstants
.
KEFUXIAOYI
))
{
intent
.
addFlags
(
Intent
.
FLAG_ACTIVITY_
CLEAR_TOP
|
Intent
.
FLAG_ACTIVITY_SINGLE_TOP
);
intent
.
addFlags
(
Intent
.
FLAG_ACTIVITY_
NEW_TASK
);
}
ActionHandlerStorage
.
setL
(
contactId
,
l
);
...
...
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