This commit is contained in:
aozhiwei 2023-12-05 15:31:15 +08:00
parent 205c71d495
commit da7c5f50e7
2 changed files with 8 additions and 5 deletions

View File

@ -460,22 +460,25 @@ func (this *room) genGameStartNotifyMsg() {
}
q5.NewSlice(&startInfo.TeamList, 0, 10)
for _, t := range this.teamUuidHash {
if t.hasAlreadMember() {
//if t.hasAlreadMember() {
{
ele := q5.NewSliceElement(&startInfo.TeamList)
ele.TeamUuid = t.teamUuid
q5.NewSlice(&ele.Members, 0, 4)
t.members.ForEach(
func(data interface{}) bool {
m := data.(*member)
if m.state == MEMBER_READY_STATE {
//if m.state == MEMBER_READY_STATE {
ele2 := q5.NewSliceElement(&ele.Members)
ele2.AccountId = m.hum.GetAccountId()
}
//}
return true
})
}
}
this.gameStartNotifyMsg.CustomRoomPayload = proto.String(q5.EncodeJson(&startInfo))
this.gameStartNotifyMsg.CustomRoomPayload = proto.String(
q5.Md5Str(q5.EncodeJson(&startInfo) + "520d8eAbB(8cf1^#$^&!@d833a42c820432PDAFE^^)") + "|" +
q5.EncodeJson(&startInfo))
}
func (this *room) canStart() bool {

2
third_party/q5 vendored

@ -1 +1 @@
Subproject commit 50cb2699546045b67366e5ee68821bc0aa9e8484
Subproject commit 3d4c6f692f684c1124fc76dd6bd46cdb28e98d87