红点类型

This commit is contained in:
meixiongfeng 2023-06-15 23:52:08 +08:00
parent a97c574ada
commit 28b0246604
3 changed files with 10 additions and 10 deletions

View File

@ -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,
}

View File

@ -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,
}

View File

@ -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,
}