diff --git a/.gitignore b/.gitignore index abd3a41..feec33f 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ third_party config target +.vscode/ diff --git a/game-server/app/lib/code.js b/game-server/app/lib/code.js index 86e0944..f6ec64b 100644 --- a/game-server/app/lib/code.js +++ b/game-server/app/lib/code.js @@ -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, // 用户不是队伍成员 }, diff --git a/game-server/app/servers/chat/handler/chatHandler.js b/game-server/app/servers/chat/handler/chatHandler.js index 4b4d6ae..050f77a 100644 --- a/game-server/app/servers/chat/handler/chatHandler.js +++ b/game-server/app/servers/chat/handler/chatHandler.js @@ -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; diff --git a/shared/code.js b/shared/code.js index 9366f99..f3219d6 100644 --- a/shared/code.js +++ b/shared/code.js @@ -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, // 用户不是队伍成员 },