diff --git a/api/core/app_server.go b/api/core/app_server.go index 7c6b99af..ed11ab0c 100644 --- a/api/core/app_server.go +++ b/api/core/app_server.go @@ -9,12 +9,12 @@ package core import ( "bytes" + "context" + "fmt" "geekai/core/types" "geekai/store/model" "geekai/utils" "geekai/utils/resp" - "context" - "fmt" "github.com/gin-gonic/gin" "github.com/go-redis/redis/v8" "github.com/golang-jwt/jwt/v5" @@ -231,11 +231,15 @@ func needLogin(c *gin.Context) bool { c.Request.URL.Path == "/api/product/list" || c.Request.URL.Path == "/api/menu/list" || c.Request.URL.Path == "/api/markMap/client" || + c.Request.URL.Path == "/api/payment/alipay/notify" || + c.Request.URL.Path == "/api/payment/hupipay/notify" || + c.Request.URL.Path == "/api/payment/payjs/notify" || + c.Request.URL.Path == "/api/payment/doPay" || + c.Request.URL.Path == "/api/payment/payWays" || strings.HasPrefix(c.Request.URL.Path, "/api/test") || strings.HasPrefix(c.Request.URL.Path, "/api/function/") || strings.HasPrefix(c.Request.URL.Path, "/api/sms/") || strings.HasPrefix(c.Request.URL.Path, "/api/captcha/") || - strings.HasPrefix(c.Request.URL.Path, "/api/payment/") || strings.HasPrefix(c.Request.URL.Path, "/static/") { return false } diff --git a/web/src/assets/css/home.styl b/web/src/assets/css/home.styl index 950182c0..bf257eda 100644 --- a/web/src/assets/css/home.styl +++ b/web/src/assets/css/home.styl @@ -21,8 +21,8 @@ cursor pointer .el-image { - width 40px - height 40px + width 48px + height 48px } } @@ -86,7 +86,7 @@ .navigator { display flex flex-flow column - width 50px + width 60px padding 10px 1px border-right: 1px solid #3c3c3c background-color: #1E1F22 @@ -97,12 +97,14 @@ li { margin-bottom 15px + display flex + flex-flow column a { color #DADBDC border-radius 10px - width 40px - height 40px + width 48px + height 48px display flex justify-content center align-items center @@ -125,9 +127,12 @@ .title { font-size: 12px - padding-top: 5px + padding-top: 6px color: #e5e7eb; text-align: center; + white-space: nowrap; /* 防止文本换行 */ + overflow: hidden; /* 隐藏溢出内容 */ + text-overflow: unset; /* 使用省略号表示溢出内容 */ } .active { diff --git a/web/src/views/Home.vue b/web/src/views/Home.vue index 4f73d940..43cf21f4 100644 --- a/web/src/views/Home.vue +++ b/web/src/views/Home.vue @@ -85,6 +85,7 @@ + {{ item.name }}