Browse Source

云打包

master
huangjiajun 1 month ago
parent
commit
e905909062
2 changed files with 17 additions and 17 deletions
  1. +7
    -7
      app/svc/cloud_bundle/svc_list.go
  2. +10
    -10
      app/svc/cloud_bundle/svc_version_info.go

+ 7
- 7
app/svc/cloud_bundle/svc_list.go View File

@@ -71,13 +71,13 @@ func List(c *gin.Context) {
}
resp.List = noticeList
resp.SelectData = []md.CloudBundleVersionMap{
{Type: "station", Name: "本站"},
{Type: "yingyongbao", Name: "应用宝"},
{Type: "huawei", Name: "华为"},
{Type: "xiaomi", Name: "小米"},
{Type: "meizu", Name: "魅族"},
{Type: "vivo", Name: "VIVO"},
{Type: "oppo", Name: "OPPO"},
{Type: "station", Name: "官方渠道"},
{Type: "yingyongbao", Name: "应用宝商店"},
{Type: "huawei", Name: "华为应用商店"},
{Type: "xiaomi", Name: "小米应用商店"},
{Type: "meizu", Name: "魅族应用商店"},
{Type: "vivo", Name: "VIVO应用商店"},
{Type: "oppo", Name: "OPPO应用商店"},
}
e.OutSuc(c, resp, nil)
return


+ 10
- 10
app/svc/cloud_bundle/svc_version_info.go View File

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


Loading…
Cancel
Save