This commit is contained in:
lightings 2023-07-06 20:50:30 +08:00
parent 5be7d0e305
commit 70e947f7bd
4 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@
third_party
config
target
.vscode/

View File

@ -17,7 +17,7 @@ module.exports = {
FA_CHANNEL_NOT_EXIST: 3002, // 频道不存在
FA_UNKNOWN_CONNECTOR: 3003, // 未知的connector
FA_USER_NOT_ONLINE: 3004, // 用户不在线
FA_USER_ALREAD_JOINED: 3005, // 用户已经加入
FA_USER_ALREADY_JOINED: 3005, // 用户已经加入
FA_USER_NOT_TEAM_MEMBER: 3006, // 用户不是队伍成员
},

View File

@ -37,7 +37,7 @@ class ChatHandler {
const list = await this.gcs.getMemberByUid(channelId, uid);
if (list.length > 0) {
next(null, {
code: Code.CHAT.FA_USER_ALREAD_JOINED,
code: Code.CHAT.FA_USER_ALREADY_JOINED,
msg: "User already joined the world channel",
});
return;

View File

@ -17,7 +17,7 @@ module.exports = {
FA_CHANNEL_NOT_EXIST: 3002, // 频道不存在
FA_UNKNOWN_CONNECTOR: 3003, // 未知的connector
FA_USER_NOT_ONLINE: 3004, // 用户不在线
FA_USER_ALREAD_JOINED: 3005, // 用户已经加入
FA_USER_ALREADY_JOINED: 3005, // 用户已经加入
FA_USER_NOT_TEAM_MEMBER: 3006, // 用户不是队伍成员
},