实装大乱斗经验
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
昔念
2026-02-14 04:27:57 +08:00
parent 06b77d598e
commit 24c413030f
10 changed files with 71 additions and 8 deletions

View File

@@ -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
}