From c6938d55e1c202da84bc6d81ddf0431cd1e7a121 Mon Sep 17 00:00:00 2001 From: taoshihan1991 <630892807@qq.com> Date: Fri, 7 May 2021 17:23:18 +0800 Subject: [PATCH] =?UTF-8?q?cdn=E8=B5=84=E6=BA=90=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- readme.md | 5 ++++- static/js/chat-lang.js | 4 +++- static/js/functions.js | 4 ++-- static/js/gofly-front.js | 6 +++--- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/readme.md b/readme.md index 13c83b0..a72af94 100644 --- a/readme.md +++ b/readme.md @@ -7,13 +7,16 @@ ### 更新日志 ##### V0.4.1 -访客端咨询按钮的样式修改了 +访客端咨询按钮的样式修改,滚动区域修改 + +访客端浏览器提醒自动消失 客服端可以编辑自动回复内容了 命令行参数中新增了关闭服务的功能如:./go-fly stop + ##### V0.3.9 利用go1.16特性进行内嵌资源 , 把模板和js内嵌入二进制文件 diff --git a/static/js/chat-lang.js b/static/js/chat-lang.js index b42f27a..f8af4ec 100644 --- a/static/js/chat-lang.js +++ b/static/js/chat-lang.js @@ -11,6 +11,7 @@ var GOFLY_LANG={ "closemes":"系统自动关闭连接!点击会重连", "forceclosemes":"客服关闭连接!请重新打开页面", "autoclosemes":"长时间未回应关闭连接!请刷新页面", + "mesBtn":"全部消息记录", }, "en":{ "sent":"Send", @@ -24,5 +25,6 @@ var GOFLY_LANG={ "closemes":"The system automatically closes the connection!", "forceclosemes":"Admin closes the connection! please reload", "autoclosemes":"session closed!please reload", + "mesBtn":"all messages", }, -}; \ No newline at end of file +}; diff --git a/static/js/functions.js b/static/js/functions.js index 1ac71f9..3fcb003 100644 --- a/static/js/functions.js +++ b/static/js/functions.js @@ -38,7 +38,7 @@ function notify(title, options, callback) { } setTimeout(function () { notification.close(); - },5000); + },3000); } } var titleTimer=0; @@ -154,4 +154,4 @@ function utf8ToB64(str) { function b64ToUtf8(str) { return decodeURIComponent(escape(window.atob(str))); } -; \ No newline at end of file +; diff --git a/static/js/gofly-front.js b/static/js/gofly-front.js index 632503d..e9df131 100644 --- a/static/js/gofly-front.js +++ b/static/js/gofly-front.js @@ -59,13 +59,13 @@ GOFLY.init=function(config){ _this.GOFLY_EXTRA=utf8ToB64(_this.GOFLY_EXTRA); }); if (typeof $!="function"){ - this.dynamicLoadJs("https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js",function () { - _this.dynamicLoadJs("https://cdn.bootcdn.net/ajax/libs/layer/3.1.1/layer.min.js",function () { + this.dynamicLoadJs("https://cdn.staticfile.org/jquery/3.6.0/jquery.min.js",function () { + _this.dynamicLoadJs("https://cdn.staticfile.org/layer/3.4.0/layer.min.js",function () { _this.jsCallBack(); }); }); }else{ - this.dynamicLoadJs("https://cdn.bootcdn.net/ajax/libs/layer/3.1.1/layer.min.js",function () { + this.dynamicLoadJs("https://cdn.staticfile.org/layer/3.4.0/layer.min.js",function () { _this.jsCallBack(); }); }