聊天:精简群推工具方法

This commit is contained in:
liangtongchuan
2021-03-10 23:13:06 +08:00
parent 0589356c82
commit 7a3c914ea0
3 changed files with 15 additions and 38 deletions

View File

@@ -84,8 +84,8 @@ export class ChatHandler {
const roleId = session.get('roleId');
const roleName = session.get('roleName');
const msgData = await createGroupMsg(roleId, roleName, channel, channelId, type, MSG_SOURCE.ROLE_SEND_TEXT, content, targetRoleId, targetMsgCode);
await pushGroupMsgToRoom(groupRoomId(channel, channelId), msgData);
if (!msgData) return resResult(STATUS.WRONG_PARMS);
await pushGroupMsgToRoom(msgData);
return resResult(STATUS.SUCCESS);
}