军团:提取权限判断
This commit is contained in:
@@ -16,7 +16,8 @@ import * as redisService from './app/services/redisService';
|
||||
import './app/servers/user.rpc.define'
|
||||
import * as routeUtil from './app/util/routeUtil';
|
||||
import { preload } from './preload';
|
||||
var globalFilter = require('./app/servers/connector/filter/global');
|
||||
import { globalFilter } from'./app/servers/connector/filter/global';
|
||||
import { guildAuthFilter } from'./app/servers/guild/filter/guildAuthFilter';
|
||||
import { connectRedis } from './config/redis';
|
||||
import * as timeTaskService from './app/services/timeTaskService';
|
||||
import * as redlockCacheService from './app/services/redlockCacheService';
|
||||
@@ -222,6 +223,10 @@ app.configure(ALL_ENVS, function () {
|
||||
});
|
||||
});
|
||||
|
||||
app.configure(ALL_ENVS, 'guild', function () {
|
||||
app.filter(guildAuthFilter(app));
|
||||
})
|
||||
|
||||
// TODO: 所有环境打开监听模块和日志
|
||||
app.configure(ALL_ENVS, function () {
|
||||
// enable the system monitor modules
|
||||
|
||||
Reference in New Issue
Block a user