mirror of
https://github.com/whyour/qinglong.git
synced 2026-06-30 20:35:09 +08:00
移除内置token判断
This commit is contained in:
@@ -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)
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user