From 28b02466040b5659df14a62fd36fc20bdb3cc0fa Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Thu, 15 Jun 2023 23:52:08 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=A2=E7=82=B9=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/friend/module.go | 4 ++-- modules/sociaty/module.go | 6 +++--- modules/task/module.go | 10 +++++----- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/modules/friend/module.go b/modules/friend/module.go index e8a9ef693..33981f859 100644 --- a/modules/friend/module.go +++ b/modules/friend/module.go @@ -205,7 +205,7 @@ func (this *Friend) Reddot(session comm.IUserSession, rid ...comm.ReddotType) (r if friend == nil { for _, v := range rid { reddot[v] = &pb.ReddotItem{ - Rid: 0, + Rid: int32(v), Activated: false, Nextchanagetime: 0, } @@ -216,7 +216,7 @@ func (this *Friend) Reddot(session comm.IUserSession, rid ...comm.ReddotType) (r case comm.Reddot21101: if len(friend.ApplyIds) > 0 { reddot[comm.Reddot15102] = &pb.ReddotItem{ - Rid: 0, + Rid: int32(comm.Reddot15102), Activated: true, Nextchanagetime: 0, } diff --git a/modules/sociaty/module.go b/modules/sociaty/module.go index 0fce23c97..f4bd197dc 100644 --- a/modules/sociaty/module.go +++ b/modules/sociaty/module.go @@ -140,7 +140,7 @@ func (this *Sociaty) Reddot(session comm.IUserSession, rid ...comm.ReddotType) ( log.Warn("公会红点未获得公会信息", log.Field{Key: "uid", Value: session.GetUserId()}) for _, v := range rid { reddot[v] = &pb.ReddotItem{ - Rid: 0, + Rid: int32(v), Activated: false, Nextchanagetime: 0, } @@ -162,13 +162,13 @@ func (this *Sociaty) Reddot(session comm.IUserSession, rid ...comm.ReddotType) ( tf := this.modelSociaty.IsSign(session.GetUserId(), sociaty) reddot[comm.Reddot15102] = &pb.ReddotItem{ - Rid: 0, + Rid: int32(comm.Reddot15102), Activated: !tf, Nextchanagetime: 0, } case comm.Reddot15201: reddot[comm.Reddot15201] = &pb.ReddotItem{ - Rid: 0, + Rid: int32(comm.Reddot15201), Activated: applyReddot, Nextchanagetime: 0, } diff --git a/modules/task/module.go b/modules/task/module.go index 405f748ee..c08ba2561 100644 --- a/modules/task/module.go +++ b/modules/task/module.go @@ -146,14 +146,14 @@ func (this *ModuleTask) Reddot(session comm.IUserSession, rid ...comm.ReddotType case comm.Reddot10101: tf, _ := this.modelTask.noReceiveTask(session.GetUserId(), comm.TASK_DAILY) reddot[comm.Reddot10101] = &pb.ReddotItem{ - Rid: 0, + Rid: int32(comm.Reddot10101), Activated: tf, Nextchanagetime: 0, } case comm.Reddot10102: tf, _ := this.modelTask.noReceiveTask(session.GetUserId(), comm.TASK_WEEKLY) reddot[comm.Reddot10102] = &pb.ReddotItem{ - Rid: 0, + Rid: int32(comm.Reddot10102), Activated: tf, Nextchanagetime: 0, } @@ -161,21 +161,21 @@ func (this *ModuleTask) Reddot(session comm.IUserSession, rid ...comm.ReddotType case comm.Reddot10103: tf, _ := this.modelTask.noReceiveTask(session.GetUserId(), comm.TASK_ACHIEVE) reddot[comm.Reddot10103] = &pb.ReddotItem{ - Rid: 0, + Rid: int32(comm.Reddot10103), Activated: tf, Nextchanagetime: 0, } case comm.Reddot10201: tf, _ := this.modelTaskActive.noReceiveTaskActive(session.GetUserId(), comm.TASK_DAILY) reddot[comm.Reddot10201] = &pb.ReddotItem{ - Rid: 0, + Rid: int32(comm.Reddot10201), Activated: tf, Nextchanagetime: 0, } case comm.Reddot10301: tf, _ := this.modelTaskActive.noReceiveTaskActive(session.GetUserId(), comm.TASK_WEEKLY) reddot[comm.Reddot10301] = &pb.ReddotItem{ - Rid: 0, + Rid: int32(comm.Reddot10301), Activated: tf, Nextchanagetime: 0, }