From 0f0ab6b67856ffc796c5a361a7714c9302af85b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Wed, 27 Nov 2024 03:36:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8F=91=E5=B8=83v2.3.21?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/bootstrap/conf.go | 2 +- pkg/db/mysql.go | 3 ++- pkg/db/postgres.go | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/internal/bootstrap/conf.go b/internal/bootstrap/conf.go index 24fa0adcd7..5516283e7b 100644 --- a/internal/bootstrap/conf.go +++ b/internal/bootstrap/conf.go @@ -31,7 +31,7 @@ func initGlobal() { } app.Root = app.Conf.MustString("app.root") - app.Version = "2.3.20" + app.Version = "2.3.21" app.Locale = app.Conf.MustString("app.locale") // 初始化时区 diff --git a/pkg/db/mysql.go b/pkg/db/mysql.go index 3f07f33481..b1ab10e894 100644 --- a/pkg/db/mysql.go +++ b/pkg/db/mysql.go @@ -3,10 +3,11 @@ package db import ( "database/sql" "fmt" - _ "github.com/go-sql-driver/mysql" "regexp" "slices" + _ "github.com/go-sql-driver/mysql" + "github.com/TheTNB/panel/pkg/types" ) diff --git a/pkg/db/postgres.go b/pkg/db/postgres.go index 7af3e7d183..426b48a022 100644 --- a/pkg/db/postgres.go +++ b/pkg/db/postgres.go @@ -3,9 +3,10 @@ package db import ( "database/sql" "fmt" - _ "github.com/lib/pq" "slices" + _ "github.com/lib/pq" + "github.com/TheTNB/panel/pkg/systemctl" "github.com/TheTNB/panel/pkg/types" )