Commit 8f82bc56 by libai

测试

parent 95c99acc
Showing with 5 additions and 4 deletions
...@@ -545,12 +545,13 @@ ...@@ -545,12 +545,13 @@
} }
function check(){ function check(){
if(sendtime>0){ if(sendtime>0){
var min=2; var min=3;
var cut=5; var cut=2;
if(new Date().getTime()-sendtime>1000*60*min){ var time=new Date().getTime()-sendtime;
if(time>1000*60*min&&time<1000*60*min+1){
var index= $(".chat-box").last().attr("class").indexOf("service"); var index= $(".chat-box").last().attr("class").indexOf("service");
if(index>-1){ if(index>-1){
msgbulid(1,"客服还没有等到您的回复,系统将在"+cut+"分钟后切断会话","系统",1); msgbulid(1,"客服还没有等到您的回复,系统将在"+cut+"分钟后关闭会话","系统",1);
} }
} }
if(new Date().getTime()-sendtime>1000*60*(min+cut)){ if(new Date().getTime()-sendtime>1000*60*(min+cut)){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment