寻宝:移除队友之后不能再次加入

This commit is contained in:
luying
2021-08-19 17:59:29 +08:00
parent 6adeda82dc
commit 69802f7af5
4 changed files with 19 additions and 3 deletions

View File

@@ -175,6 +175,9 @@ export default class ComBattleTeam extends BaseModel {
@prop({ required: true, default: false })
timeout: boolean;
// 黑名单
blacklist: string[] = [];
public static async createTeam(teamData: ComBattleTeamParam, lean = true) {
const team: ComBattleTeamType = await ComBattleTeamModel.findOneAndUpdate({ teamCode: teamData.teamCode }, {$set :{...teamData, roleCnt: teamData.roleIds.length}}, {upsert: true, new: true}).lean(lean);
return team;