From 393641d938da65399f194a6618ab013ae20dbd80 Mon Sep 17 00:00:00 2001 From: hujiebin Date: Thu, 27 Apr 2023 17:10:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E7=89=88=E6=9C=AC=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- domain/model/mgr_m/banner.go | 3 ++- route/group_r/group_info.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/domain/model/mgr_m/banner.go b/domain/model/mgr_m/banner.go index 4c90066..7f4bbe3 100644 --- a/domain/model/mgr_m/banner.go +++ b/domain/model/mgr_m/banner.go @@ -103,7 +103,8 @@ func (rb *RoomBanner) GetRoomBanners(db *gorm.DB, vcAllow bool) ([]RoomBanner, e } res := make([]RoomBanner, 0, len(rows)) for _, v := range rows { - if !vcAllow && (v.ID == 241 || v.ID == 781 || v.ID == 771 || v.ID == 911 || v.ID == 841 || v.ID == 851) { + // 版本控制 + if !vcAllow && (v.ID == 241 || v.ID == 781 || v.ID == 771 || v.ID == 911 || v.ID == 841 || v.ID == 851 || v.ID == 1001 || v.ID == 981) { continue } res = append(res, v) diff --git a/route/group_r/group_info.go b/route/group_r/group_info.go index a7bf03c..9b71582 100644 --- a/route/group_r/group_info.go +++ b/route/group_r/group_info.go @@ -811,7 +811,8 @@ func GroupBannerList(c *gin.Context) (*mycontext.MyContext, error) { model.Log.Infof("CompareVersion appVersion:%v,auditVersion:%v,allow:%v,err:%v,skip top recharge", appVersion, vc.AuditVersion, allow, err) continue } - if !allow && (v.ID == 2301 || v.ID == 4711 || v.ID == 2321 || v.ID == 5341 || v.ID == 5331 || v.ID == 5631 || v.ID == 5471 || v.ID == 5461) { + // 版本控制 + if !allow && (v.ID == 2301 || v.ID == 4711 || v.ID == 2321 || v.ID == 5341 || v.ID == 5331 || v.ID == 5631 || v.ID == 5471 || v.ID == 5461 || v.ID == 5771 || v.ID == 5811) { model.Log.Infof("CompareVersion appVersion:%v,auditVersion:%v,allow:%v,err:%v,skip top recharge", appVersion, vc.AuditVersion, allow, err) continue } -- 2.22.0