查询房间信息
This commit is contained in:
parent
ca5d442874
commit
3da6a1a667
|
@ -106,7 +106,7 @@ func init() {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
pack.Tag = webapiproto.TagCode_FAILED
|
pack.Tag = webapiproto.TagCode_FAILED
|
||||||
pack.Msg = "数据序列化失败"
|
pack.Msg = "数据序列化失败"
|
||||||
return common.ResponseTag_Ok, pack
|
return common.ResponseTag_ParamError, pack
|
||||||
}
|
}
|
||||||
pack.Tag = webapiproto.TagCode_SUCCESS
|
pack.Tag = webapiproto.TagCode_SUCCESS
|
||||||
|
|
||||||
|
@ -114,7 +114,7 @@ func init() {
|
||||||
if scene == nil || scene.ExtraData == nil {
|
if scene == nil || scene.ExtraData == nil {
|
||||||
pack.Tag = webapiproto.TagCode_NotFound
|
pack.Tag = webapiproto.TagCode_NotFound
|
||||||
pack.Msg = "房间没找到"
|
pack.Msg = "房间没找到"
|
||||||
return common.ResponseTag_TransactYield, pack
|
return common.ResponseTag_NoFindRoom, pack
|
||||||
}
|
}
|
||||||
|
|
||||||
switch d := scene.ExtraData.(type) {
|
switch d := scene.ExtraData.(type) {
|
||||||
|
@ -140,11 +140,11 @@ func init() {
|
||||||
}
|
}
|
||||||
pack.List = append(pack.List, item)
|
pack.List = append(pack.List, item)
|
||||||
}
|
}
|
||||||
|
return common.ResponseTag_Ok, pack
|
||||||
default:
|
default:
|
||||||
pack.Tag = webapiproto.TagCode_FAILED
|
pack.Tag = webapiproto.TagCode_FAILED
|
||||||
pack.Msg = "未实现"
|
pack.Msg = "未实现"
|
||||||
}
|
}
|
||||||
return common.ResponseTag_Ok, pack
|
return common.ResponseTag_NoData, pack
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
|
@ -173,8 +173,10 @@ func init() {
|
||||||
}),
|
}),
|
||||||
OnChildRespWrapper: transact.OnChildRespWrapper(func(tNode *transact.TransNode, hChild transact.TransNodeID, retCode int, ud interface{}) transact.TransExeResult {
|
OnChildRespWrapper: transact.OnChildRespWrapper(func(tNode *transact.TransNode, hChild transact.TransNodeID, retCode int, ud interface{}) transact.TransExeResult {
|
||||||
logger.Logger.Tracef("GameSrvApi OnChildRespWrapper %v:%v", hChild, ud)
|
logger.Logger.Tracef("GameSrvApi OnChildRespWrapper %v:%v", hChild, ud)
|
||||||
tNode.TransEnv.SetField(GAMESRVAPI_TRANSACTE_RESPONSE, ud)
|
if retCode == common.ResponseTag_Ok {
|
||||||
return transact.TransExeResult(retCode)
|
tNode.TransEnv.SetField(GAMESRVAPI_TRANSACTE_RESPONSE, ud)
|
||||||
|
}
|
||||||
|
return transact.TransExeResult_Success
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
// 对局详情
|
// 对局详情
|
||||||
|
|
Loading…
Reference in New Issue