From 8eaee8944a6b251f2e92162410e5f672cb560cc0 Mon Sep 17 00:00:00 2001 From: wh_zcy Date: Fri, 25 Nov 2022 18:00:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=85=AC=E4=BC=9A=E7=AD=BE?= =?UTF-8?q?=E5=88=B0=E7=BA=A2=E7=82=B9=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/sociaty/model_sociaty.go | 2 ++ modules/sociaty/module.go | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/sociaty/model_sociaty.go b/modules/sociaty/model_sociaty.go index 759641aea..fb0b47de8 100644 --- a/modules/sociaty/model_sociaty.go +++ b/modules/sociaty/model_sociaty.go @@ -225,6 +225,7 @@ func (this *ModelSociaty) getUserSociaty(uid string) (sociaty *pb.DBSociaty) { sociaty); err != nil { this.moduleSociaty.Errorln(err) } + log.Debug("跨服获取公会信息", log.Fields{"uid": uid, "sociatyId": sociaty.Id}) } } @@ -680,6 +681,7 @@ func (this *ModelSociaty) sign(uid string, sociaty *pb.DBSociaty) error { } // 是否已签到 +// 已签到true 未签到false func (this *ModelSociaty) IsSign(uid string, sociaty *pb.DBSociaty) bool { if _, ok := utils.Findx(sociaty.SignIds, uid); ok { return ok diff --git a/modules/sociaty/module.go b/modules/sociaty/module.go index 080dd1ada..e496053e8 100644 --- a/modules/sociaty/module.go +++ b/modules/sociaty/module.go @@ -137,13 +137,12 @@ func (this *Sociaty) Reddot(session comm.IUserSession, rid ...comm.ReddotType) ( if len(sociaty.ApplyRecord) > 0 { applyReddot = true } - return } for _, v := range rid { switch v { case comm.Reddot3: tf := this.modelSociaty.IsSign(session.GetUserId(), sociaty) - reddot[comm.Reddot3] = tf + reddot[comm.Reddot3] = !tf case comm.Reddot29: reddot[comm.Reddot29] = applyReddot }