系统:停服维护逻辑
This commit is contained in:
@@ -118,6 +118,7 @@ export class EntryHandler {
|
||||
async addSession(role: RoleType, session: FrontendSession) {
|
||||
const self = this;
|
||||
await session.abind(role.roleId);
|
||||
session.set('userid', role.userInfo.uid);
|
||||
session.set('uid', role.roleId);
|
||||
session.set('roleId', role.roleId);
|
||||
let updatedMailAt = role.updatedMailAt ? role.updatedMailAt : 0;
|
||||
@@ -128,6 +129,7 @@ export class EntryHandler {
|
||||
session.set('serverId', role.serverId);
|
||||
session.set('funcs', role.funcs || []);
|
||||
session.set('guildCode', role.guildCode);
|
||||
session.push('userid', () => { });
|
||||
session.push('sid', () => { });
|
||||
session.push('roleId', () => { });
|
||||
session.push('roleName', () => { });
|
||||
|
||||
Reference in New Issue
Block a user