Compare commits
4 Commits
cca29b64c6
...
e636afc4aa
Author | SHA1 | Date |
---|---|---|
|
e636afc4aa | |
|
2206eba159 | |
|
46081a862a | |
|
e479b2e6fd |
|
@ -179,10 +179,10 @@ func init() {
|
||||||
logger.Logger.Tracef("GameSrvApi OnChildRespWrapper %v:%v", hChild, ud)
|
logger.Logger.Tracef("GameSrvApi OnChildRespWrapper %v:%v", hChild, ud)
|
||||||
if v, ok := ud.([]byte); ok {
|
if v, ok := ud.([]byte); ok {
|
||||||
var msg webapi.SARoomInfo
|
var msg webapi.SARoomInfo
|
||||||
err := proto.Unmarshal(v, &msg)
|
err := proto.Unmarshal(netlib.SkipHeaderGetRaw(v), &msg)
|
||||||
if err == nil && msg.GetTag() == webapi.TagCode_SUCCESS {
|
if err == nil && msg.GetTag() == webapi.TagCode_SUCCESS {
|
||||||
tNode.TransEnv.SetField(GAMESRVAPI_TRANSACTE_RESPONSE, ud)
|
tNode.TransEnv.SetField(GAMESRVAPI_TRANSACTE_RESPONSE, ud)
|
||||||
} else {
|
} else if err != nil {
|
||||||
logger.Logger.Errorf("GameSrvApi OnChildRespWrapper unmarshal err %v", err)
|
logger.Logger.Errorf("GameSrvApi OnChildRespWrapper unmarshal err %v", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -248,6 +248,7 @@ message RoomInfo{
|
||||||
string Password = 22;// 密码
|
string Password = 22;// 密码
|
||||||
int32 CostType = 23;// 付费方式 1房主 2AA
|
int32 CostType = 23;// 付费方式 1房主 2AA
|
||||||
int32 Voice = 24;// 语音开关 1开启
|
int32 Voice = 24;// 语音开关 1开启
|
||||||
|
int32 PlayerNum = 25; // 房间最大人数
|
||||||
}
|
}
|
||||||
|
|
||||||
message PlayerSingleAdjust{
|
message PlayerSingleAdjust{
|
||||||
|
|
|
@ -199,6 +199,7 @@ func (m *SceneMgr) MarshalAllRoom(platform string, groupId, gameId int, gameMode
|
||||||
Password: s.GetPassword(),
|
Password: s.GetPassword(),
|
||||||
CostType: s.GetCostType(),
|
CostType: s.GetCostType(),
|
||||||
Voice: s.GetVoice(),
|
Voice: s.GetVoice(),
|
||||||
|
PlayerNum: int32(s.playerNum),
|
||||||
}
|
}
|
||||||
if s.starting {
|
if s.starting {
|
||||||
si.Start = 1
|
si.Start = 1
|
||||||
|
|
Loading…
Reference in New Issue