|
@@ -60,9 +60,22 @@ func Advertising(c *gin.Context) { |
|
|
NewAdvertisingSpace, _ := NewAdvertisingSpaceDb.AdvertisingSpaceAll() |
|
|
NewAdvertisingSpace, _ := NewAdvertisingSpaceDb.AdvertisingSpaceAll() |
|
|
NewAdvertisingSpaceTmp := make([]md.AdvertisingSpace, 0) |
|
|
NewAdvertisingSpaceTmp := make([]md.AdvertisingSpace, 0) |
|
|
if NewAdvertisingSpace != nil { |
|
|
if NewAdvertisingSpace != nil { |
|
|
|
|
|
NewCloudBundleDb := implement.NewCloudBundleDb(db.Db) |
|
|
|
|
|
os := "1" |
|
|
|
|
|
if c.GetHeader("platform") == "iOS" { |
|
|
|
|
|
os = "2" |
|
|
|
|
|
} |
|
|
|
|
|
data, _ := NewCloudBundleDb.GetCloudBundleVersion(os, c.GetHeader("appversionname"), c.GetHeader("channel")) |
|
|
|
|
|
|
|
|
for _, v := range *NewAdvertisingSpace { |
|
|
for _, v := range *NewAdvertisingSpace { |
|
|
var info = make(map[string]interface{}) |
|
|
var info = make(map[string]interface{}) |
|
|
json.Unmarshal([]byte(v.Info), &info) |
|
|
json.Unmarshal([]byte(v.Info), &info) |
|
|
|
|
|
if data != nil && data.IsAuditing == 1 { |
|
|
|
|
|
//审核版本 |
|
|
|
|
|
if v.Kind == 4 { |
|
|
|
|
|
continue |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
tmp := md.AdvertisingSpace{ |
|
|
tmp := md.AdvertisingSpace{ |
|
|
Id: utils.IntToStr(v.Id), |
|
|
Id: utils.IntToStr(v.Id), |
|
|
Name: v.Name, |
|
|
Name: v.Name, |
|
|