Skip to content

Commit 5eb0133

Browse files
committed
feature:升级后端依赖,前端代码调优
1 parent ff8344d commit 5eb0133

File tree

6 files changed

+70
-312
lines changed

6 files changed

+70
-312
lines changed

server/api/v1/system/sys_captcha.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func (b *BaseApi) Captcha(c *gin.Context) {
4444
driver := base64Captcha.NewDriverDigit(global.GVA_CONFIG.Captcha.ImgHeight, global.GVA_CONFIG.Captcha.ImgWidth, global.GVA_CONFIG.Captcha.KeyLong, 0.7, 80)
4545
// cp := base64Captcha.NewCaptcha(driver, store.UseWithCtx(c)) // v8下使用redis
4646
cp := base64Captcha.NewCaptcha(driver, store)
47-
id, b64s, err := cp.Generate()
47+
id, b64s, _, err := cp.Generate()
4848
if err != nil {
4949
global.GVA_LOG.Error("验证码获取失败!", zap.Error(err))
5050
response.FailWithMessage("验证码获取失败", c)

server/go.mod

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
module github.com/flipped-aurora/gin-vue-admin/server
22

3-
go 1.20
3+
go 1.22
44

55
require (
66
github.com/aliyun/aliyun-oss-go-sdk v2.2.7+incompatible
77
github.com/aws/aws-sdk-go v1.44.307
8-
github.com/casbin/casbin/v2 v2.71.1
8+
github.com/casbin/casbin/v2 v2.87.1
99
github.com/casbin/gorm-adapter/v3 v3.18.0
1010
github.com/flipped-aurora/ws v1.0.2
1111
github.com/fsnotify/fsnotify v1.6.0
@@ -18,7 +18,7 @@ require (
1818
github.com/gookit/color v1.5.4
1919
github.com/huaweicloud/huaweicloud-sdk-go-obs v3.21.8+incompatible
2020
github.com/jordan-wright/email v0.0.0-20200824153738-3f5bafa1cd84
21-
github.com/mojocn/base64Captcha v1.3.5
21+
github.com/mojocn/base64Captcha v1.3.6
2222
github.com/otiai10/copy v1.7.0
2323
github.com/pkg/errors v0.9.1
2424
github.com/qiniu/api.v7/v7 v7.4.1
@@ -38,7 +38,7 @@ require (
3838
go.mongodb.org/mongo-driver v1.12.1
3939
go.uber.org/automaxprocs v1.5.3
4040
go.uber.org/zap v1.24.0
41-
golang.org/x/crypto v0.16.0
41+
golang.org/x/crypto v0.22.0
4242
golang.org/x/sync v0.5.0
4343
golang.org/x/text v0.14.0
4444
gorm.io/driver/mysql v1.5.6
@@ -49,9 +49,9 @@ require (
4949
)
5050

5151
require (
52-
github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible // indirect
5352
github.com/KyleBanks/depth v1.2.1 // indirect
5453
github.com/bytedance/sonic v1.9.1 // indirect
54+
github.com/casbin/govaluate v1.1.1 // indirect
5555
github.com/cespare/xxhash/v2 v2.2.0 // indirect
5656
github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 // indirect
5757
github.com/clbanning/mxj v1.8.4 // indirect
@@ -78,8 +78,9 @@ require (
7878
github.com/google/uuid v1.3.0 // indirect
7979
github.com/hashicorp/hcl v1.0.0 // indirect
8080
github.com/jackc/pgpassfile v1.0.0 // indirect
81-
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
82-
github.com/jackc/pgx/v5 v5.4.3 // indirect
81+
github.com/jackc/pgservicefile v0.0.0-20231201235250-de7065d80cb9 // indirect
82+
github.com/jackc/pgx/v5 v5.5.5 // indirect
83+
github.com/jackc/puddle/v2 v2.2.1 // indirect
8384
github.com/jinzhu/inflection v1.0.0 // indirect
8485
github.com/jinzhu/now v1.1.5 // indirect
8586
github.com/jmespath/go-jmespath v0.4.0 // indirect
@@ -126,15 +127,14 @@ require (
126127
go.uber.org/atomic v1.9.0 // indirect
127128
go.uber.org/multierr v1.8.0 // indirect
128129
golang.org/x/arch v0.3.0 // indirect
129-
golang.org/x/image v0.11.0 // indirect
130-
golang.org/x/net v0.19.0 // indirect
131-
golang.org/x/sys v0.15.0 // indirect
130+
golang.org/x/image v0.15.0 // indirect
131+
golang.org/x/net v0.21.0 // indirect
132+
golang.org/x/sys v0.19.0 // indirect
132133
golang.org/x/time v0.1.0 // indirect
133134
golang.org/x/tools v0.16.1 // indirect
134-
google.golang.org/protobuf v1.30.0 // indirect
135+
google.golang.org/protobuf v1.33.0 // indirect
135136
gopkg.in/ini.v1 v1.67.0 // indirect
136137
gopkg.in/yaml.v3 v3.0.1 // indirect
137-
gorm.io/datatypes v1.2.0 // indirect
138138
gorm.io/plugin/dbresolver v1.4.1 // indirect
139139
modernc.org/libc v1.24.1 // indirect
140140
modernc.org/mathutil v1.5.0 // indirect

0 commit comments

Comments
 (0)