Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
caosy
/
fun-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1e6f2f91
authored
Sep 27, 2017
by
Huang Linyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add handling of which the sipPhone user didn't login or the sipPhone didn't bind any login user
parent
c699374a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
src/main/java/com/ctrip/fun/admin/eventhandler/NewStateWebSocket.java
src/main/java/com/ctrip/fun/admin/eventhandler/NewStateWebSocket.java
View file @
1e6f2f91
...
...
@@ -76,6 +76,10 @@ public class NewStateWebSocket {
public
static
void
unicast
(
String
username
,
String
mobileNo
)
{
String
message
=
"/system/user/"
+
mobileNo
+
"/detailByUid"
;
Session
session
=
sessionMap
.
get
(
username
);
if
(
session
==
null
){
System
.
out
.
println
(
"Callcenter pop window:分机号"
+
username
+
"没有绑定任何账户或者绑定的账户没有登录。无法为其弹窗"
);
return
;
}
try
{
session
.
getBasicRemote
().
sendText
(
message
);
}
catch
(
Exception
e
)
{
...
...
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