From e1e66b540533be1dfdf783ed13e52b1c3e996a2d Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Fri, 16 Jun 2023 21:24:26 +0800 Subject: [PATCH] =?UTF-8?q?=20Reddot17106=20,Reddot17107=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/smithy/model_atlas.go | 9 ++------- modules/smithy/module.go | 7 +------ 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/modules/smithy/model_atlas.go b/modules/smithy/model_atlas.go index 67486b3a2..a9dfc4ea7 100644 --- a/modules/smithy/model_atlas.go +++ b/modules/smithy/model_atlas.go @@ -156,16 +156,11 @@ func (this *modelAtlas) checkReddot17102(uid string) bool { } } } - - return false -} -func (this *modelAtlas) checkReddot17106(uid string) bool { - list, _ := this.module.modelAtlas.getSmithyAtlasList(uid) - for _, v := range list.Collect { + listCollect, _ := this.module.modelAtlas.getSmithyAtlasList(uid) + for _, v := range listCollect.Collect { if v.Activate == false { return true } } - return false } diff --git a/modules/smithy/module.go b/modules/smithy/module.go index 7d189d37f..030a2d547 100644 --- a/modules/smithy/module.go +++ b/modules/smithy/module.go @@ -138,12 +138,7 @@ func (this *Smithy) Reddot(session comm.IUserSession, rid ...comm.ReddotType) (r Activated: this.modelTask.checkReddot17107(session.GetUserId()), } break - case comm.Reddot17106: // - reddot[comm.Reddot17106] = &pb.ReddotItem{ - Rid: int32(comm.Reddot17106), - Activated: this.modelAtlas.checkReddot17106(session.GetUserId()), - } - break + } }