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