From a93089bfa3e97383cd26c48ee94e383ac9b6b988 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 13 Dec 2024 10:53:57 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9F=AD=E5=89=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/svc/advertising/svc_base.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/svc/advertising/svc_base.go b/app/svc/advertising/svc_base.go index 0756e8b..ad30e2c 100644 --- a/app/svc/advertising/svc_base.go +++ b/app/svc/advertising/svc_base.go @@ -6,9 +6,9 @@ import ( "applet/app/md" "applet/app/svc" "applet/app/utils" - "applet/app/utils/cache" "code.fnuoos.com/EggPlanet/egg_models.git/src/implement" "code.fnuoos.com/EggPlanet/egg_models.git/src/model" + "code.fnuoos.com/EggPlanet/egg_system_rules.git/svc/sys_cfg" "github.com/gin-gonic/gin" "github.com/tidwall/gjson" ) @@ -78,8 +78,7 @@ func SetPlayletBasic(c *gin.Context) { e.OutErr(c, err1.Code, err1.Error()) return } - redisConn := cache.GetPool().Get() - sysCfgDb := implement.NewSysCfgDb(db.Db, redisConn) + sysCfgDb := sys_cfg.NewSysCfgDb(db.Db) sysCfgDb.SysCfgUpdate("playlet_incentive_base", utils.SerializeStr(req)) e.OutSuc(c, "success", nil) return