去除授权以及样式调整

master
taoshihan 2 years ago
parent 2ac2f999cf
commit 26dbaa1ff6

@ -2,34 +2,11 @@ package middleware
import ( import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/taoshihan1991/imaptool/tools"
"log"
) )
/** /**
*/ */
func DomainLimitMiddleware(c *gin.Context) { func DomainLimitMiddleware(c *gin.Context) {
//离线或者远程
if !CheckBindOffcial(c) {
c.Abort()
return
}
} }
//绑定官网账户
func CheckBindOffcial(c *gin.Context) bool {
res, err := tools.HTTPGet("https://gofly.v1kf.com/2/isBindOfficial")
if err != nil {
log.Println("离线授权码失败,认证连接失败")
c.Redirect(302, "/bind")
c.Abort()
}
if string(res) != "success" {
c.Redirect(302, "/bind")
c.Abort()
}
return true
}

@ -2,7 +2,7 @@
.floatRight{float: right;} .floatRight{float: right;}
.clear{clear: both;} .clear{clear: both;}
.visitorBody{ .visitorBody{
background-color: #eef0f6; background-color: #4c4c4c;
} }
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 { .h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
font-family: inherit; font-family: inherit;
@ -167,7 +167,7 @@
} }
.chatCenter { .chatCenter {
background: #fff; background: #fff;
max-width: 960px; max-width: 840px;
margin: 0 auto; margin: 0 auto;
box-shadow: 2px 2px 6px rgba(0,0,0,.3); box-shadow: 2px 2px 6px rgba(0,0,0,.3);
border-top: none; border-top: none;
@ -225,8 +225,8 @@
} }
.chatBoxMe .chatContent2 { .chatBoxMe .chatContent2 {
border-radius: 8px 0px 8px 8px; border-radius: 8px 0px 8px 8px;
background-color: rgb(0, 145, 255); background-color: #cde0ff;
color: rgb(255, 255, 255); color: #000;
} }
a{color: #07a9fe;text-decoration: none;} a{color: #07a9fe;text-decoration: none;}
@ -343,7 +343,7 @@ a{color: #07a9fe;text-decoration: none;}
width: 100%; width: 100%;
z-index: 9; z-index: 9;
margin: 0 auto; margin: 0 auto;
height: 70px; height: 56px;
overflow: hidden; overflow: hidden;
font-size: 16px; font-size: 16px;
color: #fff; color: #fff;
@ -380,9 +380,9 @@ a{color: #07a9fe;text-decoration: none;}
} }
@media screen and (min-width: 900px) { @media screen and (min-width: 900px) {
.chatCenter { .chatCenter {
max-height: 800px; max-height: 650px;
box-shadow: 0 2px 8px rgba(0,0,0,.15); box-shadow: 0 2px 8px rgba(0,0,0,.15);
border-radius: 4px; border-radius: 8px;
} }
.chatVisitorPage { .chatVisitorPage {
height: calc(100% - 156px); height: calc(100% - 156px);
@ -410,7 +410,7 @@ a{color: #07a9fe;text-decoration: none;}
overflow-y: auto; overflow-y: auto;
} }
.hotQuestionTitle { .hotQuestionTitle {
padding: 15px 10px 10px 10px; padding: 10px 10px 10px 10px;
border-bottom: 1px solid rgba(0,0,0,.09); border-bottom: 1px solid rgba(0,0,0,.09);
font-size: 16px; font-size: 16px;
display: flex; display: flex;

Loading…
Cancel
Save