接口优化
This commit is contained in:
parent
38212f284b
commit
6a92d119db
@ -52,6 +52,13 @@ func ReqPlayerBriefProfileDataFunc(player *Player, buf []byte) error {
|
||||
proto.Unmarshal(buf, detail)
|
||||
Uid := int(detail.DwUin)
|
||||
PlayerSimpleData := G_GameLogicPtr.GetSimplePlayerByUid(Uid)
|
||||
if PlayerSimpleData == nil {
|
||||
log.Debug("玩家不存在, Uid:%d", Uid)
|
||||
player.SendErrClienRes(&msg.ResPlayerBriefProfileData{
|
||||
DwUin: detail.DwUin,
|
||||
})
|
||||
return errors.New("玩家不存在")
|
||||
}
|
||||
player.PushClientRes(&msg.ResPlayerBriefProfileData{
|
||||
DwUin: detail.DwUin,
|
||||
ImageFrame: int32(PlayerSimpleData.Avatar),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user