dengbiao 2 ay önce
ebeveyn
işleme
26d98095f8
2 değiştirilmiş dosya ile 6 ekleme ve 8 silme
  1. +2
    -2
      app/hdl/hdl_comm.go
  2. +4
    -6
      app/hdl/hdl_set_center.go

+ 2
- 2
app/hdl/hdl_comm.go Dosyayı Görüntüle

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



+ 4
- 6
app/hdl/hdl_set_center.go Dosyayı Görüntüle

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

e.OutSuc(c, md.BasicSetResp{


Yükleniyor…
İptal
Kaydet