From 73381185d8ba9b709c984a730842233b3a7814e5 Mon Sep 17 00:00:00 2001 From: taoshihan1991 <630892807@qq.com> Date: Mon, 26 Oct 2020 12:00:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=B7=AF=E7=94=B1=E5=88=86?= =?UTF-8?q?=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- router/api.go | 10 ++++++++-- static/css/gofly-front.css | 2 +- static/js/gofly-front.js | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/router/api.go b/router/api.go index 3fd8ef7..576ead9 100644 --- a/router/api.go +++ b/router/api.go @@ -10,6 +10,14 @@ import ( func InitApiRouter(engine *gin.Engine) { //首页 engine.GET("/", controller.Index) + //路由分组 + v2 := engine.Group("/2") + { + //获取消息 + v2.GET("/2/messages", controller.GetMessagesV2) + //发送单条信息 + v2.POST("/2/message", middleware.Ipblack, controller.SendMessageV2) + } engine.POST("/check", controller.LoginCheckPass) engine.POST("/check_auth", middleware.JwtApiMiddleware, controller.MainCheckAuth) engine.GET("/userinfo", middleware.JwtApiMiddleware, controller.GetKefuInfoAll) @@ -19,9 +27,7 @@ func InitApiRouter(engine *gin.Engine) { engine.GET("/ws_kefu", middleware.JwtApiMiddleware, ws.NewKefuServer) engine.GET("/ws_visitor", ws.NewVisitorServer) - //获取消息 engine.GET("/messages", controller.GetVisitorMessage) - engine.GET("/2/messages", controller.GetMessagesV2) engine.GET("/message_notice", controller.SendVisitorNotice) //发送单条消息 engine.POST("/message", middleware.Ipblack, controller.SendMessage) diff --git a/static/css/gofly-front.css b/static/css/gofly-front.css index 889103d..8c776f1 100644 --- a/static/css/gofly-front.css +++ b/static/css/gofly-front.css @@ -1,6 +1,6 @@ .launchButton{ position: fixed!important; - bottom: 55px!important; + bottom: 100px!important; right: 20px!important; left: auto!important; height: 48px!important; diff --git a/static/js/gofly-front.js b/static/js/gofly-front.js index 4bc93d6..15acd5c 100644 --- a/static/js/gofly-front.js +++ b/static/js/gofly-front.js @@ -36,7 +36,7 @@ function clickBtn(){ type: 2, title: GOFLY_BTN_TEXT, closeBtn: 1, //不显示关闭按钮 - shade: [0], + shade: 0, area: ['520px', '530px'], offset: 'rb', //右下角弹出 anim: 2,