1
This commit is contained in:
parent
c3f615f8da
commit
0b9b960440
@ -132,8 +132,17 @@ func (this *team) StartGame() {
|
|||||||
RoomUuid: q5.ToString(this.GetTeamUuid()),
|
RoomUuid: q5.ToString(this.GetTeamUuid()),
|
||||||
StartTime: int32(this.startTime),
|
StartTime: int32(this.startTime),
|
||||||
}
|
}
|
||||||
payload := q5.Md5Str(q5.EncodeJson(&startInfo) + "520d8eAbB(8cf1^#$^&!@d833a42c820432PDAFE^^)") + "|" +
|
{
|
||||||
q5.EncodeJson(&startInfo)
|
q5.NewSlice(&startInfo.TeamList, 0, 10)
|
||||||
|
ele := q5.NewSliceElement(&startInfo.TeamList)
|
||||||
|
ele.TeamUuid = this.GetTeamUuid()
|
||||||
|
for _, m := range this.accountIdHash {
|
||||||
|
ele2 := q5.NewSliceElement(&ele.Members)
|
||||||
|
ele2.AccountId = m.GetAccountId()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
sign := q5.Md5Str(q5.EncodeJson(&startInfo) + "520d8eAbB(8cf1^#$^&!@d833a42c820432PDAFE^^)")
|
||||||
|
payload := "normal_room:" + sign + "|" + q5.EncodeJson(&startInfo)
|
||||||
this.stateNotifyMsg.JoinMsg.TeamUuid = proto.String(this.GetTeamUuid())
|
this.stateNotifyMsg.JoinMsg.TeamUuid = proto.String(this.GetTeamUuid())
|
||||||
this.stateNotifyMsg.JoinMsg.Payload = proto.String(payload)
|
this.stateNotifyMsg.JoinMsg.Payload = proto.String(payload)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user