🐞 fix(gvg): 修复离开战场逻辑

This commit is contained in:
luying
2023-02-22 14:27:23 +08:00
parent 6cf038b588
commit a3ea2be808
5 changed files with 28 additions and 24 deletions
@@ -224,9 +224,9 @@ export class EntryHandler {
await leaveGVGAreaChannel(roleId, sid);
await leaveGVGAreaTeamChannel(roleId, sid);
await leaveGVGCityTeamChannel(roleId, sid);
await pinus.app.rpc.guild?.guildRemote.leaveCity.broadcast(roleId, true);
await pinus.app.rpc.guild?.guildRemote.leaveCity.broadcast(true, roleId, serverId, guildCode);
} catch(e) {
console.error(e);
console.error(e.stack);
}
RoleModel.updateRoleInfo(roleId, { quitTime: nowSeconds() });
// if(teamCode) { // 如果有寻宝中的队伍,那么等于战败