线上:粮草先行重新加入玩家

This commit is contained in:
luying
2022-09-09 17:12:18 +08:00
parent 17ebed084a
commit 623a7ad1f5
3 changed files with 9 additions and 2 deletions

View File

@@ -255,7 +255,10 @@ export class RaceActivityHandler {
// 加入木马
async debugResetJoin(msg: { magicWord: string }, session: BackendSession) {
const { magicWord } = msg;
if (magicWord !== DEBUG_MAGIC_WORD) {
return resResult(STATUS.TOKEN_ERR);
}
let servers = await ServerlistModel.findByEnv(pinus.app.get('env'));
let guild = pinus.app.getServersByType('guild');
for(let { id: serverId } of servers) {