dengbiao 2 months ago
parent
commit
26d98095f8
2 changed files with 6 additions and 8 deletions
  1. +2
    -2
      app/hdl/hdl_comm.go
  2. +4
    -6
      app/hdl/hdl_set_center.go

+ 2
- 2
app/hdl/hdl_comm.go View File

@@ -119,8 +119,8 @@ func MenuList(c *gin.Context) {
// @Failure 400 {object} md.Response "具体错误" // @Failure 400 {object} md.Response "具体错误"
// @Router /api/comm/basicGet [GET] // @Router /api/comm/basicGet [GET]
func GetBaseInfo(c *gin.Context) { func GetBaseInfo(c *gin.Context) {
masterId := svc.GetMasterId(c)
engine := db.DBs[masterId]
masterId := "0"
engine := db.Db
sysCfgDb := implement2.NewSysCfgDb(engine, masterId) sysCfgDb := implement2.NewSysCfgDb(engine, masterId)
res := sysCfgDb.SysCfgFindWithDb(enum.AppLogo, enum.AppName) res := sysCfgDb.SysCfgFindWithDb(enum.AppLogo, enum.AppName)




+ 4
- 6
app/hdl/hdl_set_center.go View File

@@ -6,7 +6,6 @@ import (
"applet/app/enum" "applet/app/enum"
"applet/app/lib/validate" "applet/app/lib/validate"
"applet/app/md" "applet/app/md"
"applet/app/svc"
db "code.fnuoos.com/zhimeng/model.git/src" db "code.fnuoos.com/zhimeng/model.git/src"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )
@@ -31,8 +30,8 @@ func BasicSet(c *gin.Context) {
e.OutErr(c, err1.Code, err1.Error()) e.OutErr(c, err1.Code, err1.Error())
return return
} }
masterId := svc.GetMasterId(c)
engine := db.DBs[masterId]
masterId := "0"
engine := db.Db
sysCfgDb := implement2.NewSysCfgDb(engine, masterId) sysCfgDb := implement2.NewSysCfgDb(engine, masterId)
sysCfgDb.SysCfgUpdate(enum.AppName, req.AppName) sysCfgDb.SysCfgUpdate(enum.AppName, req.AppName)
sysCfgDb.SysCfgUpdate(enum.AppLogo, req.AppLogo) sysCfgDb.SysCfgUpdate(enum.AppLogo, req.AppLogo)
@@ -51,9 +50,8 @@ func BasicSet(c *gin.Context) {
// @Failure 400 {object} md.Response "具体错误" // @Failure 400 {object} md.Response "具体错误"
// @Router /api/setCenter/basicGet [GET] // @Router /api/setCenter/basicGet [GET]
func BasicGet(c *gin.Context) { func BasicGet(c *gin.Context) {
masterId := svc.GetMasterId(c)
engine := db.DBs[masterId]
sysCfgDb := implement2.NewSysCfgDb(engine, masterId)
engine := db.Db
sysCfgDb := implement2.NewSysCfgDb(engine, "0")
res := sysCfgDb.SysCfgFindWithDb(enum.AppLogo, enum.AppName) res := sysCfgDb.SysCfgFindWithDb(enum.AppLogo, enum.AppName)


e.OutSuc(c, md.BasicSetResp{ e.OutSuc(c, md.BasicSetResp{


Loading…
Cancel
Save