This commit is contained in:
aozhiwei 2024-03-12 10:45:59 +08:00
parent 6079f8bd6f
commit 27bd9607df
2 changed files with 18 additions and 1 deletions

View File

@ -125,6 +125,14 @@ message MFTeamMember
optional int32 is_ready = 9; //
}
//
message MFTeam
{
optional string team_uuid = 1; //id
repeated MFTeamMember members = 2; //
optional string next_team_uuid = 3; //id
}
//
message CMLogin
{
@ -262,5 +270,5 @@ message SMGrantInvitePermission
//
message SMTeamUpdateNotify
{
repeated MFTeamMember members = 1; //
optional MFTeam team_info = 1; //
}

View File

@ -36,6 +36,15 @@ func (this *team) GetTeamUuid() string {
}
func (this *team) CanJoin(accountId string) bool {
if this.IsCopy() {
if !this.isFull() {
return true
} else if this.GetMemberByAccountId(accountId) != nil {
return true
}
} else {
return !this.isFull()
}
return false
}