分表优化
This commit is contained in:
parent
0c01e532e6
commit
b559d3878f
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user