update
This commit is contained in:
parent
6a92fe74da
commit
38d8112efa
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user