This commit is contained in:
@@ -15,8 +15,13 @@ import (
|
||||
// 返回: 模拟用户信息及错误码
|
||||
func (h Controller) GetUserSimInfo(data *user.SimUserInfoInboundInfo, player *player.Player) (result *user.SimUserInfoOutboundInfo, err errorcode.ErrorCode) {
|
||||
result = &user.SimUserInfoOutboundInfo{}
|
||||
t, ok := player.GetSpace().UserInfo.Load(data.UserId)
|
||||
if ok {
|
||||
copier.Copy(result, t)
|
||||
} else {
|
||||
copier.Copy(result, player.Service.Info.Person(data.UserId).Data)
|
||||
}
|
||||
|
||||
copier.Copy(result, player.Service.Info.Person(data.UserId).Data)
|
||||
return result, 0
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user