|
|
@@ -105,11 +105,14 @@ func DownloadList(c *gin.Context) { |
|
|
|
json.Unmarshal([]byte(appVersion), &version) |
|
|
|
newVersion := make([]md.Version, 0) |
|
|
|
for _, v := range version { |
|
|
|
if v.Url == "" || v.Type != "station" { |
|
|
|
continue |
|
|
|
for _, v1 := range md.PhonePlatform { |
|
|
|
if v1["type"] == v.Type { |
|
|
|
v.Name = v1["name"] |
|
|
|
v.Url = v1["url"] |
|
|
|
v.Img = "" |
|
|
|
newVersion = append(newVersion, v) |
|
|
|
} |
|
|
|
} |
|
|
|
v.Img = svc.GetOssUrl("default_icon/" + v.Type + "_icon.png") |
|
|
|
newVersion = append(newVersion, v) |
|
|
|
} |
|
|
|
res := md.VersionResp{Version: newVersion, IsAuditVersion: "0"} |
|
|
|
NewCloudBundleDb := implement.NewCloudBundleDb(db.Db) |
|
|
|