修复钉钉会话票据构建兼容

This commit is contained in:
chenpei 2026-07-07 13:21:11 +08:00
parent 45284c3b9f
commit c79414dcac

View File

@ -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: {