Browse Source

下载中心

herolist
huangjiajun 3 weeks ago
parent
commit
cc36bcb52b
2 changed files with 6 additions and 3 deletions
  1. +4
    -1
      app/hdl/hdl_config.go
  2. +2
    -2
      app/md/md_config.go

+ 4
- 1
app/hdl/hdl_config.go View File

@@ -109,7 +109,10 @@ func DownloadList(c *gin.Context) {
if v1["type"] == v.Type {
v.Name = v1["name"]
v.Url = v1["url"]
v.Img = ""
v.Img = svc.GetOssUrl("default_icon/" + v.Type + "_icon.png")
if v1["img"] != "" {
v.Img = svc.GetOssUrl(v1["img"])
}
newVersion = append(newVersion, v)
}
}


+ 2
- 2
app/md/md_config.go View File

@@ -1,10 +1,10 @@
package md

var PhonePlatform = []map[string]string{
{"type": "station", "name": "浏览器下载", "url": "https://www.pgyer.com/0KxUvTBd"},
{"type": "station", "name": "浏览器下载", "url": "https://www.pgyer.com/0KxUvTBd", "img": "55444-liulanqi.png"},
{"type": "yingyongbao", "name": "应用宝商店", "url": "https://a.app.qq.com/o/simple.jsp?pkgname=com.ddstaros.www"},
{"type": "xiaomi", "name": "小米应用商店", "url": "https://m.malink.cn/s/Q7nEzy"},
{"type": "aliApp", "name": "豌豆荚", "url": "https://m.wandoujia.com/apps/8431371"},
{"type": "aliApp", "name": "豌豆荚", "url": "https://m.wandoujia.com/apps/8431371", "img": "34462-wandoujia.png"},
}

type ConfigResp struct {


Loading…
Cancel
Save