打点增加uid
This commit is contained in:
parent
244b158563
commit
af43bd827a
@ -356,7 +356,7 @@ func ReqGmCommand_(player *Player, Command string) error {
|
|||||||
player.RaceBackData()
|
player.RaceBackData()
|
||||||
case "playroomReset":
|
case "playroomReset":
|
||||||
PlayroomMod := playroom.PlayroomMod{}
|
PlayroomMod := playroom.PlayroomMod{}
|
||||||
PlayroomMod.InitData(player.PlayerBaseMod.GetRegisterTime())
|
PlayroomMod.InitData(player.M_DwUin, player.PlayerBaseMod.GetRegisterTime())
|
||||||
player.PlayMod.mod_list.Playroom = PlayroomMod
|
player.PlayMod.mod_list.Playroom = PlayroomMod
|
||||||
case "resetCollect":
|
case "resetCollect":
|
||||||
CollectMod := player.PlayMod.getCollectMod()
|
CollectMod := player.PlayMod.getCollectMod()
|
||||||
|
|||||||
@ -164,7 +164,7 @@ type Info struct {
|
|||||||
Times int
|
Times int
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *PlayroomMod) InitData(registerTime int64) {
|
func (p *PlayroomMod) InitData(uid, registerTime int64) {
|
||||||
if p.Collect == nil {
|
if p.Collect == nil {
|
||||||
p.Collect = make(map[int]int)
|
p.Collect = make(map[int]int)
|
||||||
}
|
}
|
||||||
@ -290,10 +290,10 @@ func (p *PlayroomMod) InitData(registerTime int64) {
|
|||||||
if p.WeeklyDiscount == nil {
|
if p.WeeklyDiscount == nil {
|
||||||
p.WeeklyDiscount = make(map[int]int)
|
p.WeeklyDiscount = make(map[int]int)
|
||||||
}
|
}
|
||||||
p.version(registerTime)
|
p.version(uid, registerTime)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *PlayroomMod) version(registerTime int64) {
|
func (p *PlayroomMod) version(uid, registerTime int64) {
|
||||||
if p.Version == 0 {
|
if p.Version == 0 {
|
||||||
p.Version = 1
|
p.Version = 1
|
||||||
for _, v := range p.NewCollect {
|
for _, v := range p.NewCollect {
|
||||||
@ -307,7 +307,7 @@ func (p *PlayroomMod) version(registerTime int64) {
|
|||||||
}
|
}
|
||||||
// 修复错误被初始化的服装
|
// 修复错误被初始化的服装
|
||||||
if v.Label == "" && GoUtil.InArray(v.Id, []int{51, 52, 53, 54, 55}) {
|
if v.Label == "" && GoUtil.InArray(v.Id, []int{51, 52, 53, 54, 55}) {
|
||||||
log.Debug("version fix dress id %d", v.Id)
|
log.Debug("version fix dress id %d for uid %d", v.Id, uid)
|
||||||
delete(p.NewDress, k)
|
delete(p.NewDress, k)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -208,7 +208,7 @@ func (p *PlayerModData) InitMod(player *Player) (bool, error) {
|
|||||||
p.ModList.Mining.InitData()
|
p.ModList.Mining.InitData()
|
||||||
p.ModList.Item.InitData()
|
p.ModList.Item.InitData()
|
||||||
p.ModList.GuessColor.InitData()
|
p.ModList.GuessColor.InitData()
|
||||||
p.ModList.Playroom.InitData(int64(PlayerBaseMod.Data.RegisterTime))
|
p.ModList.Playroom.InitData(BaseMod.Uid, int64(PlayerBaseMod.Data.RegisterTime))
|
||||||
p.ModList.Emoji.InitData()
|
p.ModList.Emoji.InitData()
|
||||||
p.ModList.Collect.InitData()
|
p.ModList.Collect.InitData()
|
||||||
p.ModList.Activity.InitData()
|
p.ModList.Activity.InitData()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user