🐞 fix(gvg): 修复战区分配错误

This commit is contained in:
luying
2023-03-04 16:19:46 +08:00
parent 00263cc249
commit e183c780ee
3 changed files with 12 additions and 3 deletions

View File

@@ -302,6 +302,15 @@ export class GmHandler {
for(let serverId of serverIds) {
await GVGServerGroupModel.updateByServerId(serverId, groupId, scheduleTime);
}
try {
await pinus.app.rpc.guild.guildRemote.setGVGServerGroup.broadcast();
await pinus.app.rpc.chat.chatRemote.setGVGServerGroup.broadcast();
await pinus.app.rpc.connector.connectorRemote.setGVGServerGroup.broadcast();
await pinus.app.rpc.gm.gmRemote.setGVGServerGroup.broadcast();
await pinus.app.rpc.systimer.systimerRemote.setGVGServerGroup.broadcast();
} catch(e) {
console.log('remote未初始完');
}
return resResult(STATUS.SUCCESS);
}