mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-29 11:19:34 +08:00
移除内置token判断
This commit is contained in:
parent
b2afa65cb1
commit
f2535ece76
|
@ -62,7 +62,7 @@ export default ({ app }: { app: Application }) => {
|
|||
const keyMatch = req.path.match(/\/open\/([a-z]+)\/*/);
|
||||
const key = keyMatch && keyMatch[1];
|
||||
if (
|
||||
(doc.scopes.includes(key as any) || doc.name === 'system') &&
|
||||
doc.scopes.includes(key as any) &&
|
||||
currentToken &&
|
||||
currentToken.expiration >= Math.round(Date.now() / 1000)
|
||||
) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user