Compare commits

...

2 Commits

Author SHA1 Message Date
sk 19b4f0447b Merge branch 'develop' of git.pogorockgames.com:mango-games/server/game into develop 2024-11-08 14:51:09 +08:00
sk 752ef5d6e0 no message 2024-11-08 14:50:21 +08:00
1 changed files with 2 additions and 2 deletions

View File

@ -2795,10 +2795,10 @@ func init() {
// 离线获取 // 离线获取
var address []string var address []string
task.New(nil, task.CallableWrapper(func(o *basic.Object) interface{} { task.New(nil, task.CallableWrapper(func(o *basic.Object) interface{} {
address, _ = model.GetPlayerAddress(msg.GetPlatform(), msg.GetSnId()) address, err = model.GetPlayerAddress(msg.GetPlatform(), msg.GetSnId())
return nil return nil
}), task.CompleteNotifyWrapper(func(data interface{}, t task.Task) { }), task.CompleteNotifyWrapper(func(data interface{}, t task.Task) {
if address == nil { if err != nil {
pack.Tag = webapiproto.TagCode_FAILED pack.Tag = webapiproto.TagCode_FAILED
pack.Msg = "获取失败" pack.Msg = "获取失败"
} else { } else {