diff --git a/controller/visitor.go b/controller/visitor.go index 99f8e15..94a9a1a 100644 --- a/controller/visitor.go +++ b/controller/visitor.go @@ -118,6 +118,7 @@ func PostVisitorLogin(c *gin.Context) { go SendNoticeEmail(visitor.Name, "来了") go SendAppGetuiPush(kefuInfo.Name, visitor.Name, visitor.Name+"来了") go SendVisitorLoginNotice(kefuInfo.Name, visitor.Name, visitor.Avator, visitor.Name+"来了") + go ws.VisitorOnline(kefuInfo.Name, visitor) go SendServerJiang(visitor.Name, "来了", c.Request.Host) c.JSON(200, gin.H{ diff --git a/static/js/gofly-front.js b/static/js/gofly-front.js index 7cc8ff4..6518be2 100644 --- a/static/js/gofly-front.js +++ b/static/js/gofly-front.js @@ -190,7 +190,7 @@ GOFLY.layerOpen=function (){ title: this.chatPageTitle, closeBtn: 1, //不显示关闭按钮 shade: 0, - area: ['520px', '530px'], + area: ['400px', '530px'], offset: 'rb', //右下角弹出 anim: 2, content: [this.GOFLY_URL+'/chatIndex?kefu_id='+this.GOFLY_KEFU_ID+'&lang='+this.GOFLY_LANG+'&refer='+window.document.title+'&extra='+this.GOFLY_EXTRA , 'yes'], //iframe的url,no代表不显示滚动条