军团:添加在线离线时间
This commit is contained in:
@@ -13,6 +13,7 @@ import { ItemModel } from '../../../db/Item';
|
||||
import { chackFunOpenWhenLogin } from '../../../services/funcSwitchService';
|
||||
import { loginRefresh } from '../../../services/playerEventService';
|
||||
import { getRedis, setRedis, delRedis } from '../../../services/redisService';
|
||||
import { nowSeconds } from '../../../pubUtils/timeUtil';
|
||||
export default function (app: Application) {
|
||||
return new EntryHandler(app);
|
||||
}
|
||||
@@ -121,6 +122,7 @@ export class EntryHandler {
|
||||
channel.leave(roleId, sid);
|
||||
// this.app.rpc.battle.battleRemote.kick.route(session)(roleId, this.app.get('serverId'), serverId);
|
||||
this.app.rpc.chat.chatRemote.kickWorldChannel.route(session, true)(roleId, sid, serverId);
|
||||
RoleModel.updateRoleInfo(roleId, { quitTime: nowSeconds() });
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user