diff --git a/modules/sociaty/module.go b/modules/sociaty/module.go index a5ee91c29..4d02845a0 100644 --- a/modules/sociaty/module.go +++ b/modules/sociaty/module.go @@ -360,13 +360,20 @@ func (this *Sociaty) BuriedsNotify(session comm.IUserSession, conds []*pb.ConIPr log.Debug("公会任务通知", log.Field{Key: "uid", Value: session.GetUserId()}, log.Field{Key: "condIds", Value: conds}) - - session.SendMsg(string(comm.ModuleReddot), "change", &pb.ReddotChangePush{Rids: []*pb.ReddotItem{ - { - Rid: int32(comm.Reddot15301), - Activated: true, - }, - }}) + 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{ + { + Rid: int32(comm.Reddot15301), + Activated: true, + }, + }}) + } } func (this *Sociaty) RpcUpdateUserTask(ctx context.Context, p *TaskParams, reply *pb.EmptyResp) error {