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
b7c269a2
authored
Sep 26, 2017
by
Huang Linyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
print call log event
parent
708467f5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
12 deletions
src/main/java/com/ctrip/fun/admin/controller/tools/CallCenterController.java
src/main/webapp/resource/js/app/op.js
src/main/java/com/ctrip/fun/admin/controller/tools/CallCenterController.java
View file @
b7c269a2
...
...
@@ -128,6 +128,7 @@ public class CallCenterController {
// 1)找出具体的命令实例。
logger
.
debug
(
"event ["
+
event
+
"] is ready to execute..."
);
logger
.
debug
(
eventJsonString
);
System
.
out
.
println
(
"EEEEEEEEEEEEEEEEEEEEEEEEEEEEE: "
+
eventJsonString
);
AbstractEventHandler
eventHandler
=
eventHandlerMap
.
get
(
event
);
// 2)执行命令并返回结果
...
...
src/main/webapp/resource/js/app/op.js
View file @
b7c269a2
...
...
@@ -6,19 +6,13 @@
url
+=
sipPhoneName
;
if
(
webSocket
==
null
){
webSocket
=
new
WebSocket
(
url
);
webSocket
.
onerror
=
function
(
event
)
{};
webSocket
.
onopen
=
function
(
event
)
{};
webSocket
.
onmessage
=
function
(
event
)
{
window
.
open
(
event
.
data
,
"用户来电通知"
);
};
webSocket
.
onclose
=
function
(
event
){};
}
webSocket
.
onerror
=
function
(
event
)
{
};
webSocket
.
onopen
=
function
(
event
)
{
};
webSocket
.
onmessage
=
function
(
event
)
{
window
.
open
(
event
.
data
,
"用户来电通知"
);
};
webSocket
.
onclose
=
function
(
event
){
};
}
//关闭Socket
function
closeSocket
(){
...
...
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