diff --git a/gamesrv/base/scene.go b/gamesrv/base/scene.go index b642ada..9e8af34 100644 --- a/gamesrv/base/scene.go +++ b/gamesrv/base/scene.go @@ -2158,6 +2158,7 @@ func (this *Scene) TryBillExGameDrop(p *Player) { pack := &player.SCGameExDropItems{} pack.Items = make(map[int32]int32) for id, num := range realDrop { + remark := fmt.Sprintf("游戏掉落%v", id) pack.Items[id] = proto.Int32(num) itemData := srvdata.PBDB_GameItemMgr.GetData(id) if itemData != nil { @@ -2169,7 +2170,7 @@ func (this *Scene) TryBillExGameDrop(p *Player) { ItemId: itemData.Id, ItemName: itemData.Name, Count: int64(num), - Remark: "tienlen游戏掉落", + Remark: remark, TypeId: common.GainWay_Game, GameId: int64(this.GameId), GameFreeId: int64(this.GetGameFreeId()), diff --git a/worldsrv/coinscenemgr.go b/worldsrv/coinscenemgr.go index da57922..853ad90 100644 --- a/worldsrv/coinscenemgr.go +++ b/worldsrv/coinscenemgr.go @@ -405,6 +405,7 @@ func (csm *CoinSceneMgr) StartChangeCoinSceneTransact(p *Player, id int32, exclu // 1.模块启动后触发 // 2.游戏服建立连接后触发 // 3.房间解散后触发 +// 4.场次配置更新后 func (csm *CoinSceneMgr) TouchCreateRoom(platform string, gameFreeId int32) { gf := PlatformMgrSingleton.GetGameFree(platform, gameFreeId) if gf.Status && gf.DbGameFree.GetCreateRoomNum() > 0 { @@ -506,6 +507,7 @@ func (this *CoinSceneMgr) OnPlatformGameFreeUpdate(p *Platform, oldCfg, newCfg * } srvlib.ServerSessionMgrSington.Broadcast(int(server_proto.SSPacketID_PACKET_WG_GRACE_DESTROYSCENE), pack, common.GetSelfAreaId(), srvlib.GameServerType) + this.TouchCreateRoom(p.IdStr, newCfg.DbGameFree.Id) } }