后台:json上传
This commit is contained in:
@@ -226,10 +226,25 @@ export class EntryHandler {
|
||||
// console.error('set rid for session service failed! error is : %j', err.stack);
|
||||
// }
|
||||
// });
|
||||
session.on('closed', this.onUserLeave.bind(this));
|
||||
session.on('closed', this.onGmUserLeave.bind(this));
|
||||
|
||||
// put user into channel
|
||||
return resResult(STATUS.SUCCESS);
|
||||
return resResult(STATUS.SUCCESS, {
|
||||
serverType: this.app.get('serverName')
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* User log out handler
|
||||
*
|
||||
* @param {Object} app current application
|
||||
* @param {Object} session current session object
|
||||
*
|
||||
*/
|
||||
async onGmUserLeave(session: FrontendSession, reason: string) {
|
||||
if (!session || !session.uid) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user