From 38d8112efacdd47aec4ee6ad40e894cbdacda94a Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Fri, 19 Jan 2024 20:21:31 +0800 Subject: [PATCH] update --- modules/entertainment/room.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/entertainment/room.go b/modules/entertainment/room.go index d25962c9c..4b67bbd88 100644 --- a/modules/entertainment/room.go +++ b/modules/entertainment/room.go @@ -566,7 +566,7 @@ func (this *Room) GameOver(winner *pb.PlayerData) (errdata *pb.ErrorData) { } } if lostPlayer.Userinfo.Uid != "999" { - if conf, err := this.module.configure.GetGameConsumeHero(lostPlayer.Cardid); err != nil { + if conf, err := this.module.configure.GetGameConsumeHero(lostPlayer.Cardid); err == nil { update := map[string]interface{}{} if list, err := this.module.model.getEntertainmList(lostPlayer.Userinfo.Uid); err == nil { if list.Liansheng != 0 { @@ -583,7 +583,7 @@ func (this *Room) GameOver(winner *pb.PlayerData) (errdata *pb.ErrorData) { break } } - if c, err := this.module.configure.GetGameConsumeHero(lostPlayer.Cardid); err != nil { + if c, err := this.module.configure.GetGameConsumeHero(lostPlayer.Cardid); err == nil { if len(c.Lost) == 0 { // 容错处理 bDestruction = false } else {