修复钉钉会话票据构建兼容
This commit is contained in:
parent
45284c3b9f
commit
c79414dcac
@ -12,11 +12,11 @@ const tickets = new Map<string, DingtalkSessionTicket>()
|
||||
|
||||
function cleanupExpiredTickets() {
|
||||
const now = Date.now()
|
||||
for (const [id, ticket] of tickets.entries()) {
|
||||
tickets.forEach((ticket, id) => {
|
||||
if (ticket.expiresAt <= now) {
|
||||
tickets.delete(id)
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
export function createDingtalkSessionTicket(input: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user