From d1eb25dfb297b6b3a82825f747bcec6047391468 Mon Sep 17 00:00:00 2001 From: taoshihan1991 <630892807@qq.com> Date: Wed, 10 Mar 2021 19:04:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=95=8C=E9=9D=A2=E6=95=88?= =?UTF-8?q?=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/go-fly.sql | 2 +- static/html/index_demo.html | 13 +++++++++++++ static/js/chat-lang.js | 4 ++++ static/js/chat-page.js | 6 +++--- 4 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 static/html/index_demo.html diff --git a/config/go-fly.sql b/config/go-fly.sql index 6875e1b..aad8c51 100644 --- a/config/go-fly.sql +++ b/config/go-fly.sql @@ -143,7 +143,7 @@ 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.4-演示页', 'Simple and Powerful Golang customer live chat-GOFLY0.3.4-demo', 'GO-FLY,GO-FLY', 'GO-FLY,GO-FLY', 'GO-FLY,GO-FLY,一套为PHP工程师、Golang工程师准备的基于 Vue 2.0的在线客服即时通讯系统', 'GO-FLY,GO-FLY, a Vue 2.0-based online customer service instant messaging system for PHP engineers and Golang engineers', ' ', '
\n
\n

GO-FLY

\n English (United States)\n 中文版 (简体)\n Github\n 客服入口\n 接口文档\n
\n
\n
\n

极简强大的Go语言在线客服系统

\n

GO-FLY,一套为PHP工程师、Golang工程师准备的基于 Vue 2.0的在线客服即时通讯系统

\n
\n
\n \n \n \n
\n
\n
\n

主要技术架构

\n

github.com/dgrijalva/jwt-go

\n

github.com/gin-gonic/gin

\n

github.com/go-sql-driver/mysql

\n

github.com/gobuffalo/packr/v2

\n

github.com/gorilla/websocket

\n

github.com/ipipdotnet/ipdb-go

\n

github.com/jinzhu/gorm

\n

github.com/satori/go.uuid

\n

github.com/spf13/cobra

\n

github.com/swaggo/gin-swagger

\n

github.com/swaggo/swag\n

\n
\n \n
\n\n\n', '
\n
\n

GO-FLY

\n English (United States)\n 中文版 (简体)\n Github\n Agents Here\n API Documents\n
\n
\n

Simple and Powerful Go language online customer chat system

GO-FLY, a Vue 2.0-based online customer service instant messaging system for PHP engineers and Golang engineers

Main technical architecture

github.com/dgrijalva/jwt-go

github.com/gin-gonic/gin

github.com/go-sql-driver/mysql

github.com/gobuffalo/packr/v2

github.com/gorilla/websocket

github.com/ipipdotnet/ipdb-go

github.com/jinzhu/gorm

github.com/satori/go.uuid

github.com/spf13/cobra

github.com/swaggo/gin-swagger

github.com/swaggo/swag

\n\n\n', 'index')| +(NULL, '免费开源客服系统GOFLY0.3.5-演示页', 'Free Customer Live Chat GOFLY0.3.5-demo', 'GOFLY,GO-FLY', 'GOFLY,GO-FLY', '一款开箱即用的在线客服系统', 'HELLO GOFLY LIVE CHAT !', '','

:)

HELLO GOFLY LIVE CHAT !

Administrator

','

:)

HELLO GOFLY LIVE CHAT !

Administrator

','index')| DROP TABLE IF EXISTS `reply_group`| CREATE TABLE `reply_group` ( `id` int(11) NOT NULL AUTO_INCREMENT, diff --git a/static/html/index_demo.html b/static/html/index_demo.html new file mode 100644 index 0000000..bc207d6 --- /dev/null +++ b/static/html/index_demo.html @@ -0,0 +1,13 @@ + + + + + + 开源免费客服系统-极简强大Go语言开发客服单页营销系统 - GOFLY + + +

:)

HELLO GOFLY LIVE CHAT !

Administrator English 中文

+ + \ No newline at end of file diff --git a/static/js/chat-lang.js b/static/js/chat-lang.js index a17d075..2211a11 100644 --- a/static/js/chat-lang.js +++ b/static/js/chat-lang.js @@ -8,6 +8,8 @@ var GOFLY_LANG={ "moremessage":"点击more加载更多记录", "copyright":"GO-FLY1.0.0客服陶士涵提供技术支持", "textarea":"请输入内容", + "closemes":"系统自动关闭连接!点击会重连", + "forceclosemes":"客服关闭连接!请重新打开页面", }, "en":{ "sent":"Send", @@ -18,5 +20,7 @@ var GOFLY_LANG={ "moremessage":"click buuton show more messages", "copyright":"We run on GOFLY", "textarea":"Enter your message", + "closemes":"The system automatically closes the connection!", + "forceclosemes":"Admin closes the connection! please reload", }, }; \ No newline at end of file diff --git a/static/js/chat-page.js b/static/js/chat-page.js index bf05ebb..dcedafa 100644 --- a/static/js/chat-page.js +++ b/static/js/chat-page.js @@ -81,7 +81,7 @@ new Vue({ this.alertSound();//提示音 } if (redata.type == "close") { - this.chatTitle="系统自动关闭连接!点击会重连"; + this.chatTitle=GOFLY_LANG[LANG]['closemes']; $(".chatBox").append("
"+this.chatTitle+"
"); this.scrollBottom(); this.socket.close(); @@ -89,7 +89,7 @@ new Vue({ this.focusSendConn=true; } if (redata.type == "force_close") { - this.chatTitle="客服关闭连接!请重新打开页面"; + this.chatTitle=GOFLY_LANG[LANG]['forceclosemes']; $(".chatBox").append("
"+this.chatTitle+"
"); this.scrollBottom(); this.socket.close(); @@ -373,7 +373,7 @@ new Vue({ return; } _this.initConn(); - _this.chatTitle="连接已重连"; + _this.chatTitle=_this.flyLang['connectok']; $(".chatBox").append("
"+_this.chatTitle+"
"); _this.scrollBottom(); }