From 8433020849372e870901a52b5e96b40668e1ef65 Mon Sep 17 00:00:00 2001 From: liwei <2211068034@qq.com> Date: Fri, 21 Jul 2023 11:33:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=AD=A6=E9=A6=86=E9=A2=86?= =?UTF-8?q?=E5=A5=96bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/practice/api_receive.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/practice/api_receive.go b/modules/practice/api_receive.go index 284823ddb..e509d45bd 100644 --- a/modules/practice/api_receive.go +++ b/modules/practice/api_receive.go @@ -193,7 +193,7 @@ func (this *apiComp) Receive(session comm.IUserSession, req *pb.PracticeReceiveR ants1[index].N++ } } - + room.Knapsack[pillar.Teacher].State = 0 } } if pconfigure != nil { @@ -235,6 +235,7 @@ func (this *apiComp) Receive(session comm.IUserSession, req *pb.PracticeReceiveR ants2[index].N++ } } + room.Knapsack[pillar.Prop].State = 0 } } } @@ -245,8 +246,7 @@ func (this *apiComp) Receive(session comm.IUserSession, req *pb.PracticeReceiveR if errdata = this.module.DispenseRes(session, append(ants1, ants2...), true); errdata != nil { return } - room.Knapsack[pillar.Teacher].State = 0 - room.Knapsack[pillar.Prop].State = 0 + pillar.Hero = "" pillar.Teacher = "" pillar.Prop = ""