|
@@ -24,6 +24,7 @@ func GetBasic(c *gin.Context) { |
|
|
SeoLogoUrl: svc.GetOssUrl(svc.GetSysCfgStr("seo_logo")), |
|
|
SeoLogoUrl: svc.GetOssUrl(svc.GetSysCfgStr("seo_logo")), |
|
|
WebLogo: svc.GetSysCfgStr("web_logo"), |
|
|
WebLogo: svc.GetSysCfgStr("web_logo"), |
|
|
WebLogoUrl: svc.GetOssUrl(svc.GetSysCfgStr("web_logo")), |
|
|
WebLogoUrl: svc.GetOssUrl(svc.GetSysCfgStr("web_logo")), |
|
|
|
|
|
WapHost: svc.GetOssUrl(svc.GetSysCfgStr("wap_host")), |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
e.OutSuc(c, resp, nil) |
|
|
e.OutSuc(c, resp, nil) |
|
@@ -47,25 +48,16 @@ func SetBasic(c *gin.Context) { |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
if req.WebLogo != "" { |
|
|
if req.WebLogo != "" { |
|
|
bools := svc.SetSysCfgStr("web_logo", req.WebLogo) |
|
|
|
|
|
if bools == false { |
|
|
|
|
|
e.OutErr(c, 400, e.NewErr(400, "保存失败")) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
svc.SetSysCfgStr("web_logo", req.WebLogo) |
|
|
|
|
|
} |
|
|
|
|
|
if req.WapHost != "" { |
|
|
|
|
|
svc.SetSysCfgStr("wap_host", req.WapHost) |
|
|
} |
|
|
} |
|
|
if req.SeoLogo != "" { |
|
|
if req.SeoLogo != "" { |
|
|
bools := svc.SetSysCfgStr("seo_logo", req.SeoLogo) |
|
|
|
|
|
if bools == false { |
|
|
|
|
|
e.OutErr(c, 400, e.NewErr(400, "保存失败")) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
svc.SetSysCfgStr("seo_logo", req.SeoLogo) |
|
|
} |
|
|
} |
|
|
if req.SeoTitle != "" { |
|
|
if req.SeoTitle != "" { |
|
|
bools := svc.SetSysCfgStr("seo_title", req.SeoTitle) |
|
|
|
|
|
if bools == false { |
|
|
|
|
|
e.OutErr(c, 400, e.NewErr(400, "保存失败")) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
svc.SetSysCfgStr("seo_title", req.SeoTitle) |
|
|
} |
|
|
} |
|
|
e.OutSuc(c, "success", nil) |
|
|
e.OutSuc(c, "success", nil) |
|
|
return |
|
|
return |
|
|