cdn资源修改

pull/29/head
taoshihan1991 3 years ago
parent b49efc84f2
commit c6938d55e1

@ -7,13 +7,16 @@
### 更新日志 ### 更新日志
##### V0.4.1 ##### V0.4.1
访客端咨询按钮的样式修改了 访客端咨询按钮的样式修改,滚动区域修改
访客端浏览器提醒自动消失
客服端可以编辑自动回复内容了 客服端可以编辑自动回复内容了
命令行参数中新增了关闭服务的功能如:./go-fly stop 命令行参数中新增了关闭服务的功能如:./go-fly stop
##### V0.3.9 ##### V0.3.9
利用go1.16特性进行内嵌资源 , 把模板和js内嵌入二进制文件 利用go1.16特性进行内嵌资源 , 把模板和js内嵌入二进制文件

@ -11,6 +11,7 @@ var GOFLY_LANG={
"closemes":"系统自动关闭连接!点击会重连", "closemes":"系统自动关闭连接!点击会重连",
"forceclosemes":"客服关闭连接!请重新打开页面", "forceclosemes":"客服关闭连接!请重新打开页面",
"autoclosemes":"长时间未回应关闭连接!请刷新页面", "autoclosemes":"长时间未回应关闭连接!请刷新页面",
"mesBtn":"全部消息记录",
}, },
"en":{ "en":{
"sent":"Send", "sent":"Send",
@ -24,5 +25,6 @@ var GOFLY_LANG={
"closemes":"The system automatically closes the connection!", "closemes":"The system automatically closes the connection!",
"forceclosemes":"Admin closes the connection! please reload", "forceclosemes":"Admin closes the connection! please reload",
"autoclosemes":"session closed!please reload", "autoclosemes":"session closed!please reload",
"mesBtn":"all messages",
}, },
}; };

@ -38,7 +38,7 @@ function notify(title, options, callback) {
} }
setTimeout(function () { setTimeout(function () {
notification.close(); notification.close();
},5000); },3000);
} }
} }
var titleTimer=0; var titleTimer=0;
@ -154,4 +154,4 @@ function utf8ToB64(str) {
function b64ToUtf8(str) { function b64ToUtf8(str) {
return decodeURIComponent(escape(window.atob(str))); return decodeURIComponent(escape(window.atob(str)));
} }
; ;

@ -59,13 +59,13 @@ GOFLY.init=function(config){
_this.GOFLY_EXTRA=utf8ToB64(_this.GOFLY_EXTRA); _this.GOFLY_EXTRA=utf8ToB64(_this.GOFLY_EXTRA);
}); });
if (typeof $!="function"){ if (typeof $!="function"){
this.dynamicLoadJs("https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js",function () { this.dynamicLoadJs("https://cdn.staticfile.org/jquery/3.6.0/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/layer/3.4.0/layer.min.js",function () {
_this.jsCallBack(); _this.jsCallBack();
}); });
}); });
}else{ }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(); _this.jsCallBack();
}); });
} }

Loading…
Cancel
Save