优化离线时间

This commit is contained in:
hahwu 2025-02-11 18:09:10 +08:00
parent c04d31d778
commit 8d6834ac1f

View File

@ -726,6 +726,7 @@ func (p *Player) GetSimpleData(Uid int, simple *PlayerSimpleData) error {
func (p *Player) UpdateUserInfo() { func (p *Player) UpdateUserInfo() {
simple := &PlayerSimpleData{} simple := &PlayerSimpleData{}
Base := p.GetPlayerBaseMod() Base := p.GetPlayerBaseMod()
BaseMod := p.PlayMod.getBaseMod()
simple.Name = p.PlayMod.getBaseMod().NickName simple.Name = p.PlayMod.getBaseMod().NickName
simple.Avatar = p.PlayMod.getAvatarMod().SetId simple.Avatar = p.PlayMod.getAvatarMod().SetId
simple.Uid = int(p.M_DwUin) simple.Uid = int(p.M_DwUin)
@ -733,8 +734,8 @@ func (p *Player) UpdateUserInfo() {
simple.Face = p.PlayMod.getFaceMod().SetId simple.Face = p.PlayMod.getFaceMod().SetId
simple.Level = p.GetPlayerBaseMod().GetLevel() simple.Level = p.GetPlayerBaseMod().GetLevel()
simple.Decorate = p.PlayMod.getDecorateMod().DecorateNum simple.Decorate = p.PlayMod.getDecorateMod().DecorateNum
simple.Login = int64(Base.Data.LoginTime) simple.Login = int64(BaseMod.LoginTime)
simple.Loginout = int64(Base.Data.LogoutTime) simple.Loginout = int64(BaseMod.LogoutTime)
simple.FaceBook = Base.Data.FaceBookId simple.FaceBook = Base.Data.FaceBookId
simple.FaceBookPic = p.PlayMod.getBaseMod().FacebookUrl simple.FaceBookPic = p.PlayMod.getBaseMod().FacebookUrl
simple.Playroom = p.PlayMod.getPlayroomMod().Room simple.Playroom = p.PlayMod.getPlayroomMod().Room