Browse Source

下载中心

herolist
huangjiajun 3 weeks ago
parent
commit
a78a822d01
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      app/hdl/hdl_config.go

+ 11
- 0
app/hdl/hdl_config.go View File

@@ -127,6 +127,17 @@ func DownloadList(c *gin.Context) {
if data != nil {
res.IsAuditVersion = utils.IntToStr(data.IsAuditing)
}
if res.IsAuditVersion == "1" {
newVersion = make([]md.Version, 0)
for _, v := range version {
if v.Url == "" || v.Type != "station" {
continue
}
v.Img = svc.GetOssUrl("default_icon/" + v.Type + "_icon.png")
newVersion = append(newVersion, v)
}
res.Version = newVersion
}
e.OutSuc(c, res, nil)
return
}


Loading…
Cancel
Save