From 3d84c239d8a04580217b7facffbac006ea643fc5 Mon Sep 17 00:00:00 2001
From: taoshihan1991 <630892807@qq.com>
Date: Fri, 19 Mar 2021 13:35:46 +0800
Subject: [PATCH 1/3] =?UTF-8?q?=E7=AE=80=E5=8C=96=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
static/html/chat_web.css | 5 ----
static/html/chat_web.js | 54 ----------------------------------------
static/html/index.html | 20 ---------------
tmpl/setting.go | 9 -------
4 files changed, 88 deletions(-)
delete mode 100644 static/html/chat_web.css
delete mode 100644 static/html/chat_web.js
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",
From 2184cb0777bceede2b79edfde62962481023b318 Mon Sep 17 00:00:00 2001
From: taoshihan1991 <630892807@qq.com>
Date: Fri, 19 Mar 2021 15:48:49 +0800
Subject: [PATCH 2/3] =?UTF-8?q?=E6=B8=85=E7=90=86=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
router/view.go | 2 --
1 file changed, 2 deletions(-)
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)
}
From e8678357991ccdadcb97da828bd3fd4de6b0b59b Mon Sep 17 00:00:00 2001
From: taoshihan1991 <630892807@qq.com>
Date: Fri, 19 Mar 2021 16:45:25 +0800
Subject: [PATCH 3/3] =?UTF-8?q?=E5=B8=B8=E8=A7=81=E9=97=AE=E9=A2=98?=
=?UTF-8?q?=E7=BB=99=E4=B8=AA=E9=BB=98=E8=AE=A4=E6=95=B0=E6=8D=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
config/go-fly.sql | 29 ++++++++++++++++++++++++++++-
1 file changed, 28 insertions(+), 1 deletion(-)
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 !
',':)
HELLO GOFLY LIVE CHAT !
','index')|
+(NULL, '免费开源客服系统GOFLY0.3.7-演示页',
+'Free Customer Live Chat GOFLY0.3.7-demo',
+'GOFLY,GO-FLY',
+'GOFLY,GO-FLY',
+'一款开箱即用的在线客服系统',
+'a free customer live chat',
+'',
+'
+ :)
',
+'
+ :)
',
+ '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,