Authored by htoooth

fix bug

@@ -41,7 +41,7 @@ module.exports = (req, res, next) => { @@ -41,7 +41,7 @@ module.exports = (req, res, next) => {
41 41
42 if (remoteIp && 42 if (remoteIp &&
43 !_.get(req.app.locals, 'pc.sys.noLimiter') && 43 !_.get(req.app.locals, 'pc.sys.noLimiter') &&
44 - _.includes(IP_WHITE_LIST, remoteIp)) { // 判断获取remoteIp成功,并且开关未关闭 44 + !_.includes(IP_WHITE_LIST, remoteIp)) { // 判断获取remoteIp成功,并且开关未关闭
45 45
46 let key = `pc:limiter:${remoteIp}`; 46 let key = `pc:limiter:${remoteIp}`;
47 47