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