diff --git a/app/hdl/hdl_config.go b/app/hdl/hdl_config.go index a298af7..29feb32 100644 --- a/app/hdl/hdl_config.go +++ b/app/hdl/hdl_config.go @@ -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) } diff --git a/app/md/md_config.go b/app/md/md_config.go index e8aa170..fb16413 100644 --- a/app/md/md_config.go +++ b/app/md/md_config.go @@ -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"` diff --git a/go.mod b/go.mod index 81e1b1e..7b6b18e 100644 --- a/go.mod +++ b/go.mod @@ -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