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 {