工会任务推送优化

This commit is contained in:
liwei 2023-08-10 16:26:04 +08:00
parent d247d3e723
commit 1d4c478bd8
2 changed files with 4 additions and 1 deletions

View File

@ -596,7 +596,7 @@ func (this *Buried) trigger(session comm.IUserSession, burieds ...*pb.BuriedPara
} else { } else {
this.wtask.BuriedsNotify(session, changes) this.wtask.BuriedsNotify(session, changes)
this.smithy.BuriedsNotify(session, changes) this.smithy.BuriedsNotify(session, changes)
this.sociaty.BuriedsNotify(session, changes) // this.sociaty.BuriedsNotify(session, changes)
} }
} }

View File

@ -186,6 +186,9 @@ func (this *PushGiftbag) BuriedsNotify(session comm.IUserSession, condis []*pb.C
if len(item) > 0 { if len(item) > 0 {
info.Item = append(info.Item, item...) info.Item = append(info.Item, item...)
} }
this.model.Change(session.GetUserId(), map[string]interface{}{
"item": info.Item,
})
session.SendMsg(string(this.GetType()), "chanage", &pb.PushGiftbagChanagePush{Item: info.Item}) session.SendMsg(string(this.GetType()), "chanage", &pb.PushGiftbagChanagePush{Item: info.Item})
} }
} }