From be9983c04a0709b27c15ade5e1b09d2031c2981e Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 24 Dec 2024 18:53:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=BF=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/svc/svc_advertising.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/svc/svc_advertising.go b/app/svc/svc_advertising.go index 1372766..a02803b 100644 --- a/app/svc/svc_advertising.go +++ b/app/svc/svc_advertising.go @@ -60,9 +60,22 @@ func Advertising(c *gin.Context) { NewAdvertisingSpace, _ := NewAdvertisingSpaceDb.AdvertisingSpaceAll() NewAdvertisingSpaceTmp := make([]md.AdvertisingSpace, 0) 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 { var info = make(map[string]interface{}) json.Unmarshal([]byte(v.Info), &info) + if data != nil && data.IsAuditing == 1 { + //审核版本 + if v.Kind == 4 { + continue + } + } tmp := md.AdvertisingSpace{ Id: utils.IntToStr(v.Id), Name: v.Name,