diff --git a/app/hdl/hdl_set_center.go b/app/hdl/hdl_set_center.go index b9e392a..2a3c58a 100644 --- a/app/hdl/hdl_set_center.go +++ b/app/hdl/hdl_set_center.go @@ -562,8 +562,12 @@ func SetLogo(c *gin.Context) { sysCfgDb := implement2.NewSysCfgDb(engine, masterId) sysCfgDb.SysCfgUpdate("medium_logo", req.MediumLogo) 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, "agent_logo") + svc.ClearRedis(c, masterId, "medium_login_logo") + svc.ClearRedis(c, masterId, "agent_login_logo") svc.ClearAllRedis(c, masterId) e.OutSuc(c, "success", nil) return @@ -583,12 +587,14 @@ func GetLogo(c *gin.Context) { masterId := svc.GetMasterId(c) engine := db.DBs[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{ 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) return diff --git a/app/md/md_set_center.go b/app/md/md_set_center.go index 49571d6..f1e4cac 100644 --- a/app/md/md_set_center.go +++ b/app/md/md_set_center.go @@ -56,8 +56,10 @@ type SetMobResp struct { Data SetMobReq `json:"data"` //数据内容 } 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 { Data SetLogoReq `json:"data"` //数据内容