diff --git a/config/go-fly.sql b/config/go-fly.sql index befd861..d7fc88a 100644 --- a/config/go-fly.sql +++ b/config/go-fly.sql @@ -143,7 +143,32 @@ PRIMARY KEY (`id`), UNIQUE KEY `page` (`page`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8| INSERT INTO `about` (`id`, `title_cn`, `title_en`, `keywords_cn`, `keywords_en`, `desc_cn`, `desc_en`, `css_js`, `html_cn`, `html_en`, `page`) VALUES -(NULL, '免费开源客服系统GOFLY0.3.6-演示页', 'Free Customer Live Chat GOFLY0.3.6-demo', 'GOFLY,GO-FLY', 'GOFLY,GO-FLY', '一款开箱即用的在线客服系统', 'HELLO GOFLY LIVE CHAT !', '','

:)

HELLO GOFLY LIVE CHAT !

Administrator English 中文

','

:)

HELLO GOFLY LIVE CHAT !

Administrator English 中文

','index')| +(NULL, '免费开源客服系统GOFLY0.3.7-演示页', +'Free Customer Live Chat GOFLY0.3.7-demo', +'GOFLY,GO-FLY', +'GOFLY,GO-FLY', +'一款开箱即用的在线客服系统', +'a free customer live chat', +'', +' +

:)

你好 GOFLY0.3.7 在线客服系统 !

Administrator English 中文

', +' +

:)

HELLO GOFLY0.3.7 LIVE CHAT !

Administrator English 中文

', + 'index')| DROP TABLE IF EXISTS `reply_group`| CREATE TABLE `reply_group` ( `id` int(11) NOT NULL AUTO_INCREMENT, @@ -152,6 +177,7 @@ CREATE TABLE `reply_group` ( PRIMARY KEY (`id`), KEY `user_id` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8| +INSERT INTO `reply_group` (`id`, `group_name`, `user_id`) VALUES (NULL, '常见问题', 'kefu2')| DROP TABLE IF EXISTS `reply_item`| CREATE TABLE `reply_item` ( `id` int(11) NOT NULL AUTO_INCREMENT, @@ -163,6 +189,7 @@ CREATE TABLE `reply_item` ( KEY `user_id` (`user_id`), KEY `group_id` (`group_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8| +INSERT INTO `reply_item` (`id`, `content`, `group_id`, `user_id`, `item_name`) VALUES (NULL, '在这里[官网]link[https://gofly.sopans.com]!','1','kefu2', '官方地址在哪?')| DROP TABLE IF EXISTS `land_page`| CREATE TABLE `land_page` ( `id` int(11) NOT NULL, diff --git a/router/view.go b/router/view.go index 1c16dce..cdc61b5 100644 --- a/router/view.go +++ b/router/view.go @@ -27,6 +27,4 @@ func InitViewRouter(engine *gin.Engine) { engine.GET("/setting_config", tmpl.PageConfig) engine.GET("/mail_list", tmpl.PageMailList) engine.GET("/roles_list", tmpl.PageRoleList) - engine.GET("/webjs", tmpl.PageWebJs) - engine.GET("/webcss", tmpl.PageWebCss) } diff --git a/static/html/chat_web.css b/static/html/chat_web.css deleted file mode 100644 index 901f6d5..0000000 --- a/static/html/chat_web.css +++ /dev/null @@ -1,5 +0,0 @@ -.chatBtn{ - position: fixed; - right: 10px; - bottom: 10px; -} diff --git a/static/html/chat_web.js b/static/html/chat_web.js deleted file mode 100644 index 96f30fa..0000000 --- a/static/html/chat_web.js +++ /dev/null @@ -1,54 +0,0 @@ -var loadJs=function(url,callback){ - var script = document.createElement('script'), fn = callback || function(){}; - script.type = 'text/javascript'; - if(script.readyState){ - script.onreadystatechange = function(){ - if( script.readyState == 'loaded' || script.readyState == 'complete' ){ - script.onreadystatechange = null; - fn(); - } - }; - }else{ - script.onload = function(){ - fn(); - }; - } - script.src = url; - document.getElementsByTagName('head')[0].appendChild(script); -}; -loadJs("https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js",function(){ - loadJs("https://cdn.bootcdn.net/ajax/libs/layer/3.1.1/layer.min.js" ,function () { - $(function () { - var goflyKefuId=""; - if(typeof GOFLY_KEFU_ID!="undefined"){ - var goflyKefuId=GOFLY_KEFU_ID; - } - - var div =document.createElement('div'); - div.id ='goflyKefu'; - div.className +='goflyKefu'; - document.body.appendChild(div); - var w =document.getElementById('goflyKefu'); - w.innerHTML='
在线咨询
'; - - $("#goflyKefu").click(function () { - $("#goflyKefu").hide(); - layer.open({ - type: 2, - title: '在线咨询', - shadeClose: true, - shade: false, - maxmin: true, - area: ['660px', '600px'], - content: ['http://gofly.sopans.com/chat_page?kefu_id='+goflyKefuId,'no'], - end: function(){ - $("#goflyKefu").show(); - } - }); - }); - //END - }) - }); -}); - - diff --git a/static/html/index.html b/static/html/index.html index 2d677f1..e299dd4 100644 --- a/static/html/index.html +++ b/static/html/index.html @@ -1,4 +1,3 @@ - @@ -8,28 +7,9 @@ {{.Title}} - {{.CssJs}} - - {{.Content}} - - - - - - - - \ No newline at end of file diff --git a/tmpl/setting.go b/tmpl/setting.go index 0585e56..bd7fddd 100644 --- a/tmpl/setting.go +++ b/tmpl/setting.go @@ -45,15 +45,6 @@ func PageSettingDeploy(c *gin.Context) { }) } -//前台js部署 -func PageWebJs(c *gin.Context) { - c.HTML(http.StatusOK, "chat_web.js", nil) -} - -//前台css部署 -func PageWebCss(c *gin.Context) { - c.HTML(http.StatusOK, "chat_web.css", nil) -} func PageKefuList(c *gin.Context) { c.HTML(http.StatusOK, "setting_kefu_list.html", gin.H{ "tab_index": "3-2",