This commit is contained in:
meixiongfeng 2024-01-19 20:21:31 +08:00
parent 6a92fe74da
commit 38d8112efa

View File

@ -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 {