Compare commits
2 Commits
8866473467
...
19b4f0447b
Author | SHA1 | Date |
---|---|---|
|
19b4f0447b | |
|
752ef5d6e0 |
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue