mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 23:06:06 +08:00
修复openapi token生成逻辑
This commit is contained in:
parent
0a6166c557
commit
98ccccf6ab
|
@ -119,7 +119,7 @@ export default class OpenService {
|
|||
(x) => x.expiration >= timestamp,
|
||||
);
|
||||
let tokens = invalidTokens;
|
||||
if (invalidTokens.length > 5) {
|
||||
if (invalidTokens.length >= 5) {
|
||||
tokens = [
|
||||
...invalidTokens.slice(0, 4),
|
||||
{ ...invalidTokens[4], expiration },
|
||||
|
|
Loading…
Reference in New Issue
Block a user