寻宝:一键邀请

This commit is contained in:
luying
2022-05-17 17:32:13 +08:00
parent 996517797f
commit ff5ffe387e

View File

@@ -680,8 +680,7 @@ export class ComBattleHandler {
const { teamCode } = msg;
let teamStatus = this.teamMap.get(teamCode);
if(!teamStatus) return resResult(STATUS.WRONG_PARMS);
const { msgDataWorld, msgDataGuild } = await pushTeamInviteMsg(roleId, roleName, serverId, guildCode, teamCode, teamStatus.blueprtId);
if (!msgDataWorld || !msgDataGuild) return resResult(STATUS.WRONG_PARMS);
await pushTeamInviteMsg(roleId, roleName, serverId, guildCode, teamCode, teamStatus.blueprtId);
return resResult(STATUS.SUCCESS);
}