From c5708e48d816d7f76986bd2e3c8a3d422ecf6ccd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=BA=E9=92=A7=E5=A8=81?= <13571899655@163.com> Date: Sun, 22 Mar 2020 16:49:43 +0800 Subject: [PATCH] fix: middleware --- middleware/authenticate.lua | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/middleware/authenticate.lua b/middleware/authenticate.lua index 5c111d0..12aaf2a 100644 --- a/middleware/authenticate.lua +++ b/middleware/authenticate.lua @@ -1,13 +1,9 @@ -local auth_service = require("services.auth_service") -local response = require("lib.response") - local _M = {} function _M:handle() - if not auth_service:check() then - return false, response:json(0x000004, '未登录') - end - return true + -- if not auth_service:check() then + -- return false, response:json(0x000004) + -- end end return _M \ No newline at end of file