工会任务红点

This commit is contained in:
liwei1dao 2024-02-23 15:35:51 +08:00
parent c68217f47d
commit 32e1c43c2c

View File

@ -360,7 +360,13 @@ func (this *Sociaty) BuriedsNotify(session comm.IUserSession, conds []*pb.ConIPr
log.Debug("公会任务通知", log.Debug("公会任务通知",
log.Field{Key: "uid", Value: session.GetUserId()}, log.Field{Key: "uid", Value: session.GetUserId()},
log.Field{Key: "condIds", Value: conds}) log.Field{Key: "condIds", Value: conds})
ok := false
for _, v := range conds {
if v.State == pb.BuriedItemFinishState_buried_finish {
ok = true
}
}
if ok {
session.SendMsg(string(comm.ModuleReddot), "change", &pb.ReddotChangePush{Rids: []*pb.ReddotItem{ session.SendMsg(string(comm.ModuleReddot), "change", &pb.ReddotChangePush{Rids: []*pb.ReddotItem{
{ {
Rid: int32(comm.Reddot15301), Rid: int32(comm.Reddot15301),
@ -368,6 +374,7 @@ func (this *Sociaty) BuriedsNotify(session comm.IUserSession, conds []*pb.ConIPr
}, },
}}) }})
} }
}
func (this *Sociaty) RpcUpdateUserTask(ctx context.Context, p *TaskParams, reply *pb.EmptyResp) error { func (this *Sociaty) RpcUpdateUserTask(ctx context.Context, p *TaskParams, reply *pb.EmptyResp) error {
conn, err := db.Local() conn, err := db.Local()