后台:修改权限用表
This commit is contained in:
@@ -245,18 +245,23 @@ export class EntryHandler {
|
||||
console.log('user token not found');
|
||||
return resResult(STATUS.TOKEN_ERR);
|
||||
}
|
||||
if(!user.isEnable) {
|
||||
return resResult(STATUS.GM_NO_AUTHORITY_GET);
|
||||
}
|
||||
|
||||
// console.log(self.app.get('serverId'));
|
||||
await session.abind(user.username);
|
||||
session.set('uid', user.uid);
|
||||
session.set('roleId', user.username);
|
||||
session.set('roleName', user.name);
|
||||
session.set('groupId', user.groupId);
|
||||
session.set('eventStatus', 0);
|
||||
session.set('sid', self.app.get('serverId'));
|
||||
session.push('uid', () => { });
|
||||
session.push('sid', () => { });
|
||||
session.push('roleId', () => { });
|
||||
session.push('roleName', () => { });
|
||||
session.push('groupId', () => { });
|
||||
session.push('eventStatus', () => { });
|
||||
// session.push('rid', function (err) {
|
||||
// if (err) {
|
||||
@@ -267,7 +272,6 @@ export class EntryHandler {
|
||||
|
||||
// put user into channel
|
||||
return resResult(STATUS.SUCCESS, {
|
||||
serverType: this.app.get('serverName'),
|
||||
env: this.app.get('env')
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user