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,