|
@@ -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 |
|
|