From 2cfe269edfcd26be1c390ac9cced0ab7cf2641fd Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Sat, 21 Dec 2024 09:31:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E6=9C=AC=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/hdl/hdl_config.go | 3 +++ app/md/md_config.go | 1 + 2 files changed, 4 insertions(+) diff --git a/app/hdl/hdl_config.go b/app/hdl/hdl_config.go index a77b173..45df7fb 100644 --- a/app/hdl/hdl_config.go +++ b/app/hdl/hdl_config.go @@ -55,6 +55,9 @@ func Config(c *gin.Context) { SeoLogo: svc.GetOssUrl(svc.GetSysCfgStr("seo_logo")), WebLogo: svc.GetOssUrl(svc.GetSysCfgStr("web_logo")), } + link := svc.GetSysCfgStr("kuaizhan_url") + link += "?type=download" + res.DownViewUrl = link e.OutSuc(c, res, nil) return } diff --git a/app/md/md_config.go b/app/md/md_config.go index c0cab53..ad52d5f 100644 --- a/app/md/md_config.go +++ b/app/md/md_config.go @@ -10,6 +10,7 @@ type ConfigResp struct { OssUrl string `json:"oss_url" example:"阿里云图片链接"` Guide []Guide `json:"guide"` DownUrl string `json:"down_url"` + DownViewUrl string `json:"down_view_url"` Seo Seo `json:"seo"` } type Seo struct {