Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
guodong
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
a8229bd5
authored
Mar 11, 2021
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
84a5c8a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
gzh/customer/guodong.html
gzh/customer/guodong.html
View file @
a8229bd5
...
...
@@ -563,16 +563,18 @@
ws
.
onerror
=
function
(
event
)
{
// 关闭 websocket
if
(
recOk
){
var
recNum
=
0
timmer
=
setInterval
(
function
(){
ws
.
close
();
var
guestid
=
$
(
"#guestid"
).
val
();
WebSocketStart
(
guestid
,
false
)
recNum
++
if
(
recNum
>=
5
)
clearInterval
(
timmer
)
},
3000
);
}
var
guestid
=
$
(
"#guestid"
).
val
();
WebSocketStart
(
guestid
,
false
)
// if(recOk){
// var recNum=0
// timmer=setInterval(function(){
// recNum++
// if(recNum>=5)clearInterval(timmer)
// }, 3000);
// }
state
(
"连接错误"
);
msgbulid
(
1
,
"会话意外断开,发送消息即可联系客服"
,
"系统"
,
1
);
console
.
error
(
"WebSocket error observed:"
,
event
);
...
...
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