From 0906449a13d181c106d220cf2494f714c9b5b30c Mon Sep 17 00:00:00 2001 From: dengbiao Date: Wed, 11 Dec 2024 22:35:39 +0800 Subject: [PATCH] update --- app/hdl/comm/hdl_comm.go | 2 +- app/hdl/hdl_login.go | 2 +- app/hdl/hdl_wallet.go | 2 +- app/lib/gopay/init_alipay.go | 2 +- go.mod | 5 ++--- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/app/hdl/comm/hdl_comm.go b/app/hdl/comm/hdl_comm.go index f59b833..b46db4e 100644 --- a/app/hdl/comm/hdl_comm.go +++ b/app/hdl/comm/hdl_comm.go @@ -42,7 +42,7 @@ func GetOssUrl(c *gin.Context) { redisConn := cache.GetPool().Get() sysCfgDb := implement.NewSysCfgDb(db.Db, redisConn) defer func(sysCfgDb dao.SysCfgDao) { - err := sysCfgDb.Close() + err = sysCfgDb.Close() if err != nil { logx.Error("redis close err:" + err.Error()) // 记录错误信息 } diff --git a/app/hdl/hdl_login.go b/app/hdl/hdl_login.go index 8e2d145..00ba5cb 100644 --- a/app/hdl/hdl_login.go +++ b/app/hdl/hdl_login.go @@ -324,7 +324,7 @@ func commReq(c *gin.Context, req md.RegisterReq) { redisConn := cache.GetPool().Get() sysCfgDb := implement.NewSysCfgDb(db.Db, redisConn) defer func(sysCfgDb dao.SysCfgDao) { - err := sysCfgDb.Close() + err = sysCfgDb.Close() if err != nil { logx.Error("redis close err:" + err.Error()) // 记录错误信息 } diff --git a/app/hdl/hdl_wallet.go b/app/hdl/hdl_wallet.go index cbb37c5..e025741 100644 --- a/app/hdl/hdl_wallet.go +++ b/app/hdl/hdl_wallet.go @@ -415,7 +415,7 @@ func LaunchBindAlipayAccount(c *gin.Context) { redisConn := cache.GetPool().Get() sysCfgDb := implement.NewSysCfgDb(db.Db, redisConn) defer func(sysCfgDb dao.SysCfgDao) { - err := sysCfgDb.Close() + err = sysCfgDb.Close() if err != nil { logx.Error("redis close err:" + err.Error()) // 记录错误信息 } diff --git a/app/lib/gopay/init_alipay.go b/app/lib/gopay/init_alipay.go index f4beea6..a2761c3 100644 --- a/app/lib/gopay/init_alipay.go +++ b/app/lib/gopay/init_alipay.go @@ -30,7 +30,7 @@ func InitAlipay(initData *InitAlipayStruct) (client *alipay.Client, err error) { if initData == nil { sysCfgDb := implement.NewSysCfgDb(db.Db, cache.GetPool().Get()) defer func(sysCfgDb dao.SysCfgDao) { - err := sysCfgDb.Close() + err = sysCfgDb.Close() if err != nil { logx.Error("redis close err:" + err.Error()) // 记录错误信息 } diff --git a/go.mod b/go.mod index 0ae77c7..d883a8b 100644 --- a/go.mod +++ b/go.mod @@ -15,7 +15,7 @@ require ( github.com/go-playground/universal-translator v0.18.1 github.com/go-playground/validator/v10 v10.20.0 github.com/go-redis/redis v6.15.9+incompatible - github.com/gomodule/redigo v2.0.0+incompatible + github.com/gomodule/redigo v1.9.2 github.com/jinzhu/copier v0.4.0 github.com/makiuchi-d/gozxing v0.0.0-20210324052758-57132e828831 github.com/qiniu/api.v7/v7 v7.8.2 @@ -33,11 +33,10 @@ require ( require ( code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241211055111-7c47b67b46d2 - code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241207095445-64c8aa0b486e + code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241211143147-17b736995b8f code.fnuoos.com/go_rely_warehouse/zyos_go_es.git v1.0.1-0.20241118083738-0f22da9ba0be code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5 github.com/aliyun/aliyun-oss-go-sdk v3.0.2+incompatible - github.com/gin-contrib/sessions v1.0.1 github.com/go-pay/crypto v0.0.1 github.com/go-pay/gopay v1.5.101 github.com/go-pay/xlog v0.0.2