From 158da0d06597711b3cc091f840c0ee8cb1c60cdd Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 27 Sep 2024 11:25:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/hdl/hdl_set_center.go | 12 +++++++++--- app/md/md_set_center.go | 6 ++++-- 2 files changed, 13 insertions(+), 5 deletions(-) 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"` //数据内容