Browse Source

短剧

master
huangjiajun 5 days ago
parent
commit
a93089bfa3
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      app/svc/advertising/svc_base.go

+ 2
- 3
app/svc/advertising/svc_base.go View File

@@ -6,9 +6,9 @@ import (
"applet/app/md" "applet/app/md"
"applet/app/svc" "applet/app/svc"
"applet/app/utils" "applet/app/utils"
"applet/app/utils/cache"
"code.fnuoos.com/EggPlanet/egg_models.git/src/implement" "code.fnuoos.com/EggPlanet/egg_models.git/src/implement"
"code.fnuoos.com/EggPlanet/egg_models.git/src/model" "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/gin-gonic/gin"
"github.com/tidwall/gjson" "github.com/tidwall/gjson"
) )
@@ -78,8 +78,7 @@ func SetPlayletBasic(c *gin.Context) {
e.OutErr(c, err1.Code, err1.Error()) e.OutErr(c, err1.Code, err1.Error())
return 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)) sysCfgDb.SysCfgUpdate("playlet_incentive_base", utils.SerializeStr(req))
e.OutSuc(c, "success", nil) e.OutSuc(c, "success", nil)
return return


Loading…
Cancel
Save