lrf %!s(int64=2) %!d(string=hai) anos
pai
achega
f7bbd253bd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/middleware/checkUserRK.js

+ 1 - 1
app/middleware/checkUserRK.js

@@ -14,7 +14,7 @@ module.exports = options => {
     const method = _.get(request, 'method');
     const uri = _.get(request, 'url');
     // 本地或局域网请求,放过
-    if (process.env.NODE_ENV !== 'development') await next();
+    if (process.env.NODE_ENV === 'development') await next();
     // get方法放过
     else if (method === 'GET') await next();
     else {