聊天:组队一键邀请也发送给军团

This commit is contained in:
liangtongchuan
2021-03-26 11:00:41 +08:00
parent cc2e6ac227
commit 030c1543e7
2 changed files with 7 additions and 5 deletions
+5 -3
View File
@@ -314,9 +314,11 @@ export async function updatePrivateMsgReadInfo(roleId: string, targetRoleId: str
* @param {string} teamCode 队伍唯一标识
*/
export async function pushTeamInviteMsg(roleId: string, roleName: string, serverId: number, teamCode: string) {
const msgData = await createGroupMsg(roleId, roleName, CHANNEL_PREFIX.WORLD, `${serverId}`, MSG_TYPE.RICH_TEXT, MSG_SOURCE.TEAM_INVITE, teamCode, null, null);
await pushGroupMsgToRoom(msgData);
return msgData;
const msgDataWorld = await createGroupMsg(roleId, roleName, CHANNEL_PREFIX.WORLD, `${serverId}`, MSG_TYPE.RICH_TEXT, MSG_SOURCE.TEAM_INVITE, teamCode, null, null);
const msgDataGuild = await createGroupMsg(roleId, roleName, CHANNEL_PREFIX.GUILD, `${serverId}`, MSG_TYPE.RICH_TEXT, MSG_SOURCE.TEAM_INVITE, teamCode, null, null);
await pushGroupMsgToRoom(msgDataWorld);
await pushGroupMsgToRoom(msgDataGuild);
return { msgDataWorld, msgDataGuild };
}
export async function createAccuseData(roleId: string, targetRoleId: string, targetMsgCode: string, reason: number) {