From bf88cb6c5bb01891223705998694ed09b9dd395a Mon Sep 17 00:00:00 2001
From: "630892807@qq.com" <630892807@qq.com>
Date: Sun, 28 Mar 2021 21:27:53 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=98=E7=BD=91=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
controller/message.go | 4 +-
static/css/style.css | 153 ++++++++++++++++++++
static/html/index_new.html | 281 ++++++++++---------------------------
3 files changed, 230 insertions(+), 208 deletions(-)
create mode 100644 static/css/style.css
diff --git a/controller/message.go b/controller/message.go
index 6917456..0318d90 100644
--- a/controller/message.go
+++ b/controller/message.go
@@ -9,7 +9,6 @@ import (
"github.com/taoshihan1991/imaptool/models"
"github.com/taoshihan1991/imaptool/tools"
"github.com/taoshihan1991/imaptool/ws"
- "log"
"os"
"path"
"strconv"
@@ -115,8 +114,7 @@ func SendMessageV2(c *gin.Context) {
go SendAppGetuiPush(kefuInfo.Name, vistorInfo.Name, content)
kefus, ok := ws.KefuList[kefuInfo.Name]
if !ok || len(kefus) == 0 {
- log.Println("客服不在线,发送邮件通知")
- go SendNoticeEmail(content+"|"+vistorInfo.Name, content)
+
}
go ws.VisitorAutoReply(vistorInfo, kefuInfo, content)
c.JSON(200, gin.H{
diff --git a/static/css/style.css b/static/css/style.css
new file mode 100644
index 0000000..dae82f3
--- /dev/null
+++ b/static/css/style.css
@@ -0,0 +1,153 @@
+*{
+ margin: 0;padding: 0;
+}
+a {
+ text-decoration: none;
+ color: #3973ac;
+}
+a:hover {
+ text-decoration: underline;
+}
+.header{
+ background-color: #fff;
+ color: #fff;
+ width: 100%;
+ z-index: 100;
+}
+.container{
+ width: 1140px;
+ padding: 0;
+ margin: 0 auto;
+}
+.header .logo{
+ margin: 0;
+ float: left;
+ font-size: 32px;
+ font-weight: bold;
+ margin-top: 10px;
+}
+.header a{
+ color: #828282;
+ font-weight: bold;
+ font-family: "Microsoft JhengHei";
+ text-decoration: none;
+}
+.header .logo a{
+ font-size: 30px;
+ text-decoration: none;
+}
+.header .logo img{
+ width: 120px;
+}
+.header .navBtn{
+ float: right;
+ margin:30px 0 30px 20px;
+ display: inline-block;
+}
+.banner{
+ text-align: center;
+ color: #fff;
+ background-color: #3385ff;
+ padding: 20px 10px;
+ font-size: 18px;
+ line-height: 28px;
+}
+.banner h1 {
+ font-size: 34px;
+ margin: 20px 0px;
+ line-height: 45px;
+ font-weight: 500;
+ font-family: Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,SimSun,sans-serif;
+}
+.banner p{
+ max-width: 1200px;
+ margin: 0 auto;
+}
+.banner .downloadBtn{margin-top: 20px;}
+.downloadBtn{display:inline-block;text-decoration:none;color:#fff;border:1px solid #fff;padding:10px 15px;border-radius:5px;}
+.downloadBtn:hover{background:#fff;color:#20b2bb;}
+.jumbotron{
+ width: 1000px;
+ margin: 10px auto;
+ box-shadow: 2px 2px 15px rgba(0,0,0,.3);
+ display: block;
+}
+
+
+.copyright{
+ font-size: 14px;
+ color: #333;
+ text-align: center;
+ padding: 10px;
+}
+.links{
+ margin-top: 20px;
+}
+.links a{
+ color: #20b2bb;
+ line-height: 23px;
+ margin: 5px;
+}
+.main{
+ background: #ededed;
+ overflow: hidden;
+}
+.mainIntro{
+ background: #fff;
+ box-shadow: 0 1px 5px 0 rgba(0,0,0,.05);
+ margin: 20px auto;
+}
+.product{
+ padding: 10px;
+}
+.product h3{
+ color: #333;
+ font-size: 16px;
+ line-height: 36px;
+ border-bottom: 1px solid #e6e6e6;
+}
+.productContent{
+ color: #444;
+ font-size: 14px;
+ line-height: 30px;
+ margin-top: 10px;
+}
+.productContent a{
+ color: #3973ac;
+ text-decoration: none;
+}
+.productContent a:hover{
+ text-decoration: underline;
+}
+@media screen and (max-width: 800px) {
+ .container{
+ width: 100%;
+ }
+ .header .logo{
+ float: none;
+ text-align: center;
+ margin: 20px 0px;
+ }
+ .header .navBtn{
+ margin:5px 0 10px 10px;
+ float: none;
+ }
+ .banner p{
+ text-align: left;
+ }
+ .jumbotron{
+ width: 100%;
+ height: auto;
+ }
+
+
+}
+.clear{clear:both}
+.links{
+ margin-top: 20px;
+}
+.links a{
+ color: #20b2bb;
+ line-height: 23px;
+ margin: 5px;
+}
\ No newline at end of file
diff --git a/static/html/index_new.html b/static/html/index_new.html
index c33a2b9..5ac2469 100644
--- a/static/html/index_new.html
+++ b/static/html/index_new.html
@@ -1,220 +1,91 @@
+
+
开源免费客服系统-极简强大Go语言开发客服单页营销系统 - GOFLY
-
+
+
+
-
-
-
-
开源 · 免费 · 网页在线客服营销系统
-
GO-FLY,一套可独立部署的免费开源客服系统,基于GO语言开发,二进制文件安装和使用非常简单,是一个开箱即用的网页在线客服系统
-
同时也是首页完全可以编辑的单页营销系统
-
下载 GOFLY (Linux/Windows)
-
-
-
-