From 18e915e373073c3328edb0748354b2bb35103c4b Mon Sep 17 00:00:00 2001 From: wangxiaoji Date: Mon, 29 Jun 2026 12:08:54 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E8=B0=83=E6=95=B4=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E4=BB=A5=E5=85=BC=E5=AE=B9=20Go=201.23?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - go.mod: go 1.26.2 → go 1.23 - gin-gonic/gin: v1.12.0 → v1.10.0 - gin-contrib/sessions: v1.1.0 → v1.0.1 新版 Gin/gin-contrib 都要求 Go 1.25+,但生产服务器 go 1.23.4 升不上来(连不上 proxy.golang.org),先降到 兼容版本保证能编过。 --- go.mod | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 97892e3..cdfee92 100644 --- a/go.mod +++ b/go.mod @@ -1,7 +1,7 @@ module github.com/QuantumNous/new-api // +heroku goVersion go1.18 -go 1.26.2 +go 1.23 require ( github.com/Calcium-Ion/go-epay v0.0.4 @@ -16,9 +16,9 @@ require ( github.com/fyinfor/router-engine v0.1.0 github.com/gin-contrib/cors v1.7.7 github.com/gin-contrib/gzip v1.2.6 - github.com/gin-contrib/sessions v1.1.0 + github.com/gin-contrib/sessions v1.0.1 github.com/gin-contrib/static v1.1.6 - github.com/gin-gonic/gin v1.12.0 + github.com/gin-gonic/gin v1.10.0 github.com/glebarez/sqlite v1.11.0 github.com/go-audio/aiff v1.1.0 github.com/go-audio/wav v1.1.0