分表优化

This commit is contained in:
hahwu 2026-04-03 19:43:56 +08:00
parent 0c01e532e6
commit b559d3878f

View File

@ -287,7 +287,8 @@ func (ad *GameLogic) NewAccountInsertDataToDB() bool {
ModData: buf.Bytes(),
UpdataTime: int32(time.Now().Unix()),
}
db.FormatAllMemInsertDb(playerMod, "t_player_mod")
tableName := "t_player_mod_" + fmt.Sprintf("%02d", insertId%100)
db.FormatAllMemInsertDb(playerMod, tableName)
// 创建玩家日志
player := new(Player)
BaseMod := player.PlayMod.getBaseMod()