Browse Source

版本升级

master
huangjiajun 3 days ago
parent
commit
780836dc6e
3 changed files with 12 additions and 10 deletions
  1. +2
    -2
      app/hdl/hdl_config.go
  2. +9
    -7
      app/md/md_config.go
  3. +1
    -1
      go.mod

+ 2
- 2
app/hdl/hdl_config.go View File

@@ -92,7 +92,7 @@ func Version(c *gin.Context) {
if c.GetHeader("platform") == "iOS" {
os = "2"
}
data, _ := NewCloudBundleDb.GetCloudBundleVersion(os, c.GetHeader("appversionname"))
data, _ := NewCloudBundleDb.GetCloudBundleVersion(os, c.GetHeader("appversionname"), c.GetHeader("channel"))
if data != nil {
res.IsAuditVersion = utils.IntToStr(data.IsAuditing)
}
@@ -117,7 +117,7 @@ func DownloadList(c *gin.Context) {
if c.GetHeader("platform") == "iOS" {
os = "2"
}
data, _ := NewCloudBundleDb.GetCloudBundleVersion(os, c.GetHeader("appversionname"))
data, _ := NewCloudBundleDb.GetCloudBundleVersion(os, c.GetHeader("appversionname"), c.GetHeader("channel"))
if data != nil {
res.IsAuditVersion = utils.IntToStr(data.IsAuditing)
}


+ 9
- 7
app/md/md_config.go View File

@@ -25,13 +25,15 @@ type VersionResp struct {
IsAuditVersion string `json:"is_audit_version"`
}
type Version struct {
Type string `json:"type"`
Img string `json:"img"`
Name string `json:"name"`
Version string `json:"version"`
Url string `json:"url"`
Content string `json:"content"`
IsMust string `json:"is_must"`
Type string `json:"type"`
Img string `json:"img"`
Name string `json:"name"`
Version string `json:"version"`
Url string `json:"url"`
Content string `json:"content"`
IsMust string `json:"is_must"`
DownType string `json:"down_type"`
OutUrl string `json:"out_url"`
}
type Guide struct {
BgImage string `json:"bg_image"`


+ 1
- 1
go.mod View File

@@ -33,7 +33,7 @@ require (
)

require (
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241221164231-20952e894d1d
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241224014721-42a6059f0dfa
code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241223102933-953e3394de41
code.fnuoos.com/go_rely_warehouse/zyos_go_es.git v1.0.1-0.20241118083738-0f22da9ba0be
code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5


Loading…
Cancel
Save