Merge pull request #8786 from dataease/pr@dev@fix_pblink_ticket_exp

fix: 公共链接ticket过期机制
This commit is contained in:
fit2cloud-chenyw 2024-03-29 10:19:40 +08:00 committed by GitHub
commit d1422b14fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -395,6 +395,10 @@ public class PanelLinkService {
return ticketDto;
}
Long exp = linkTicket.getExp();
if (ObjectUtils.isEmpty(exp) || exp.equals(0L)) {
ticketDto.setTicketExp(false);
return ticketDto;
}
long expTime = exp * 60L * 1000L;
long time = now - accessTime;
ticketDto.setTicketExp(time > expTime);