Commit b02af66d authored by hujiebin's avatar hujiebin

feat:多加版本限制

parent 2d3034cf
......@@ -103,7 +103,7 @@ 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 {
if !vcAllow && (v.ID == 241 || v.ID == 781 || v.ID == 771) {
continue
}
res = append(res, v)
......
......@@ -810,7 +810,7 @@ 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) {
if !allow && (v.ID == 2301 || v.ID == 4711 || v.ID == 2321 || v.ID == 5341 || v.ID == 5331) {
model.Log.Infof("CompareVersion appVersion:%v,auditVersion:%v,allow:%v,err:%v,skip top recharge", appVersion, vc.AuditVersion, allow, err)
continue
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment