From c0e41abefc14635809a2ae8a3a44ddbe350ae6aa Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Thu, 22 Dec 2022 20:26:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=A7=98=E5=A2=83=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/moonfantasy/module.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/moonfantasy/module.go b/modules/moonfantasy/module.go index 2c43b6bf6..51b89d4ee 100644 --- a/modules/moonfantasy/module.go +++ b/modules/moonfantasy/module.go @@ -93,7 +93,14 @@ func (this *Moonfantasy) Trigger(session comm.IUserSession, source *pb.BattleRep n, _ := rand.Int(rand.Reader, big.NewInt(1000)) if int32(n.Int64()) < triggerData.DreamlandPro { if this.IsCross() { - this.modelDream.trigger(session) + go func(uid string) { + ss, _ := this.GetUserSession(uid) + this.modelDream.trigger(ss) + if err = ss.Push(); err != nil { + this.Errorln(err) + } + }(session.GetUserId()) + } else { if _, err = this.service.AcrossClusterRpcGo(context.Background(), this.GetCrossTag(),