-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a47148
commit c5708e4
Showing
1 changed file
with
3 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |