|
|
@@ -17,18 +17,18 @@ func VersionBase(c *gin.Context) { |
|
|
|
tmp := make([]md.CloudBundleVersion, 0) |
|
|
|
json.Unmarshal([]byte(appCloudBundleData), &tmp) |
|
|
|
data := []md.CloudBundleVersion{ |
|
|
|
{Type: "station", Name: "本站"}, |
|
|
|
{Type: "yingyongbao", Name: "应用宝"}, |
|
|
|
{Type: "ios", Name: "IOS"}, |
|
|
|
{Type: "huawei", Name: "华为"}, |
|
|
|
{Type: "xiaomi", Name: "小米"}, |
|
|
|
{Type: "meizu", Name: "魅族"}, |
|
|
|
{Type: "vivo", Name: "VIVO"}, |
|
|
|
{Type: "oppo", Name: "OPPO"}, |
|
|
|
{Type: "station", Name: "官方渠道"}, |
|
|
|
{Type: "yingyongbao", Name: "应用宝商店"}, |
|
|
|
{Type: "ios", Name: "IOS商店"}, |
|
|
|
{Type: "huawei", Name: "华为应用商店"}, |
|
|
|
{Type: "xiaomi", Name: "小米应用商店"}, |
|
|
|
{Type: "meizu", Name: "魅族应用商店"}, |
|
|
|
{Type: "vivo", Name: "VIVO应用商店"}, |
|
|
|
{Type: "oppo", Name: "OPPO应用商店"}, |
|
|
|
} |
|
|
|
for k, v := range data { |
|
|
|
data[k].Img = v.Type + "_icon.png" |
|
|
|
data[k].ImgUrl = svc.GetOssUrl(v.Type + "_icon.png") |
|
|
|
data[k].Img = "default_icon/" + v.Type + "_icon.png" |
|
|
|
data[k].ImgUrl = svc.GetOssUrl(data[k].Img) |
|
|
|
for _, v1 := range tmp { |
|
|
|
if v1.Type == v.Type { |
|
|
|
data[k].Version = v1.Version |
|
|
|