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