From fb2c4b34d68bf3dd3e8d429d0c2bcc0889fdc882 Mon Sep 17 00:00:00 2001 From: taoshihan1991 <630892807@qq.com> Date: Wed, 24 Mar 2021 10:04:05 +0800 Subject: [PATCH] =?UTF-8?q?=E9=95=BF=E6=97=B6=E9=97=B4=E6=9C=AA=E5=8F=91?= =?UTF-8?q?=E9=80=81=E5=85=B3=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/css/gofly-front.css | 2 +- static/js/gofly-front.js | 2 +- ws/visitor.go | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/static/css/gofly-front.css b/static/css/gofly-front.css index f168054..bc59015 100644 --- a/static/css/gofly-front.css +++ b/static/css/gofly-front.css @@ -133,7 +133,7 @@ cursor: pointer; } #layui-layer19911116{ - display: none; + /*display: none;*/ } .launchPointer{ background: #3cc51f; diff --git a/static/js/gofly-front.js b/static/js/gofly-front.js index eff6249..5effd37 100644 --- a/static/js/gofly-front.js +++ b/static/js/gofly-front.js @@ -150,7 +150,7 @@ GOFLY.getNotice=function(){ _this.kefuAvator=res.result.avatar; _this.kefuName=res.result.username; _this.chatPageTitle+=""+res.result.username; - if(_this.GOFLY_AUTO_OPEN&&_this.isIE()<=0){ + if(_this.GOFLY_AUTO_OPEN&&res.result.status=='online'&&_this.isIE()<=0){ _this.showKefu(); $(".launchButtonBox").show(); _this.launchButtonFlag=false; diff --git a/ws/visitor.go b/ws/visitor.go index c04fc3e..ca833c0 100644 --- a/ws/visitor.go +++ b/ws/visitor.go @@ -174,7 +174,6 @@ func VisitorAutoReply(vistorInfo models.Visitor, kefuInfo models.User, content s } func cleanVisitorExpire() { go func() { - return log.Println("cleanVisitorExpire start...") for { for _, user := range ClientList { @@ -192,8 +191,7 @@ func cleanVisitorExpire() { log.Println(user.Name + ":cleanVisitorExpire finshed") } } - // 计算下一个零点 - t := time.NewTimer(time.Second * 10) + t := time.NewTimer(time.Second * 5) <-t.C } }()