Browse Source

更新

master
huangjiajun 1 month ago
parent
commit
158da0d065
2 changed files with 13 additions and 5 deletions
  1. +9
    -3
      app/hdl/hdl_set_center.go
  2. +4
    -2
      app/md/md_set_center.go

+ 9
- 3
app/hdl/hdl_set_center.go View File

@@ -562,8 +562,12 @@ func SetLogo(c *gin.Context) {
sysCfgDb := implement2.NewSysCfgDb(engine, masterId) sysCfgDb := implement2.NewSysCfgDb(engine, masterId)
sysCfgDb.SysCfgUpdate("medium_logo", req.MediumLogo) sysCfgDb.SysCfgUpdate("medium_logo", req.MediumLogo)
sysCfgDb.SysCfgUpdate("agent_logo", req.AgentLogo) sysCfgDb.SysCfgUpdate("agent_logo", req.AgentLogo)
sysCfgDb.SysCfgUpdate("medium_login_logo", req.MediumLoginLogo)
sysCfgDb.SysCfgUpdate("agent_login_logo", req.AgentLoginLogo)
svc.ClearRedis(c, masterId, "medium_logo") svc.ClearRedis(c, masterId, "medium_logo")
svc.ClearRedis(c, masterId, "agent_logo") svc.ClearRedis(c, masterId, "agent_logo")
svc.ClearRedis(c, masterId, "medium_login_logo")
svc.ClearRedis(c, masterId, "agent_login_logo")
svc.ClearAllRedis(c, masterId) svc.ClearAllRedis(c, masterId)
e.OutSuc(c, "success", nil) e.OutSuc(c, "success", nil)
return return
@@ -583,12 +587,14 @@ func GetLogo(c *gin.Context) {
masterId := svc.GetMasterId(c) masterId := svc.GetMasterId(c)
engine := db.DBs[masterId] engine := db.DBs[masterId]
sysCfgDb := implement2.NewSysCfgDb(engine, masterId) sysCfgDb := implement2.NewSysCfgDb(engine, masterId)
res := sysCfgDb.SysCfgFindWithDb("medium_logo", "agent_logo")
res := sysCfgDb.SysCfgFindWithDb("medium_logo", "agent_logo", "medium_login_logo", "agent_login_logo")


e.OutSuc(c, md.SetLogoResp{ e.OutSuc(c, md.SetLogoResp{
Data: md.SetLogoReq{ Data: md.SetLogoReq{
MediumLogo: res["medium_logo"],
AgentLogo: res["agent_logo"],
MediumLogo: res["medium_logo"],
AgentLogo: res["agent_logo"],
MediumLoginLogo: res["medium_login_logo"],
AgentLoginLogo: res["agent_login_logo"],
}, },
}, nil) }, nil)
return return


+ 4
- 2
app/md/md_set_center.go View File

@@ -56,8 +56,10 @@ type SetMobResp struct {
Data SetMobReq `json:"data"` //数据内容 Data SetMobReq `json:"data"` //数据内容
} }
type SetLogoReq struct { type SetLogoReq struct {
MediumLogo string `json:"medium_logo"`
AgentLogo string `json:"agent_logo"`
MediumLogo string `json:"medium_logo"`
AgentLogo string `json:"agent_logo"`
MediumLoginLogo string `json:"medium_login_logo"`
AgentLoginLogo string `json:"agent_login_logo"`
} }
type SetLogoResp struct { type SetLogoResp struct {
Data SetLogoReq `json:"data"` //数据内容 Data SetLogoReq `json:"data"` //数据内容


Loading…
Cancel
Save