寻宝:寻宝邀请信息修改
This commit is contained in:
@@ -707,16 +707,17 @@ export class ComBattleHandler {
|
||||
let roleId = session.get('roleId');
|
||||
let roleName = session.get('roleName');
|
||||
const { teamCode, targetRoleId } = msg;
|
||||
const msgData = await pushFriendTeamInviteMsg(roleId, roleName, teamCode, targetRoleId);
|
||||
|
||||
let teamStatus = this.teamMap.get(teamCode);
|
||||
if(!teamStatus) return resResult(STATUS.WRONG_PARMS);
|
||||
|
||||
const msgData = await pushFriendTeamInviteMsg(roleId, roleName, teamCode, teamStatus.blueprtId, targetRoleId);
|
||||
if (!msgData) return resResult(STATUS.WRONG_PARMS);
|
||||
const roleInfo = await getSimpleRoleInfo(targetRoleId);
|
||||
|
||||
let teamStatus = this.teamMap.get(teamCode);
|
||||
if(teamStatus) {
|
||||
let index = teamStatus.blacklist.indexOf(targetRoleId);
|
||||
if(index != -1) {
|
||||
teamStatus.blacklist.splice(index, 1);
|
||||
}
|
||||
let index = teamStatus.blacklist.indexOf(targetRoleId);
|
||||
if(index != -1) {
|
||||
teamStatus.blacklist.splice(index, 1);
|
||||
}
|
||||
|
||||
return resResult(STATUS.SUCCESS, {...msgData, roleInfo});
|
||||
|
||||
Reference in New Issue
Block a user