玩家消息bug修复

This commit is contained in:
hahwu 2026-02-03 17:20:00 +08:00
parent 6824df5a1c
commit 25cfbf30a2

View File

@ -429,11 +429,13 @@ func (ad *GameLogic) GetResFriendPlayerByUid(Id int) *msg.ResFriendPlayerSimple
return nil
}
}
LastActLog := player.ActLog
Last := &msg.ActLog{
Type: int32(LastActLog.Type),
Time: LastActLog.Time,
Param: LastActLog.Param,
last := &msg.ActLog{}
if player.ActLog != nil {
last = &msg.ActLog{
Type: int32(player.ActLog.Type),
Time: player.ActLog.Time,
Param: player.ActLog.Param,
}
}
return &msg.ResFriendPlayerSimple{
Uid: int64(player.Uid),
@ -450,7 +452,7 @@ func (ad *GameLogic) GetResFriendPlayerByUid(Id int) *msg.ResFriendPlayerSimple
DressSet: GoUtil.MapIntToInt32(player.DressSet),
Friend: GoUtil.IntToInt32(player.Friend),
Physiology: GoUtil.MapIntToInt32(player.Physiology),
Last: Last,
Last: last,
PetName: player.PetName,
}
}