diff --git a/gamesrv/tienlen/scenepolicy_tienlen.go b/gamesrv/tienlen/scenepolicy_tienlen.go index 7283010..5a249ae 100644 --- a/gamesrv/tienlen/scenepolicy_tienlen.go +++ b/gamesrv/tienlen/scenepolicy_tienlen.go @@ -591,8 +591,10 @@ func (this *SceneBaseStateTienLen) CanChangeTo(s base.SceneState) bool { // 当前状态能否换桌 func (this *SceneBaseStateTienLen) CanChangeCoinScene(s *base.Scene, p *base.Player) bool { - if s.IsCustom() && s.GetNumOfGames() > 0 { - return false + if s.IsCustom() { + if s.NumOfGames > 0 && s.NumOfGames < int(s.TotalOfGames) { + return false + } } return !p.IsGameing() || s.GetDestroyed() || !s.GetGaming() } diff --git a/worldsrv/addmail.go b/worldsrv/addmail.go index 379b81d..dc48d36 100644 --- a/worldsrv/addmail.go +++ b/worldsrv/addmail.go @@ -41,6 +41,10 @@ func AddMail(param *AddMailParam) { return } + if param.SrcName == "" { + param.SrcName = "{\"zh\":\"系统\",\"vi\":\"GM\",\"en\":\"GM\",\"kh\":\"GM\"}" + } + opener := int32(1) if param.SrcId <= 0 { opener = 0