fix: 公共链接ticket过期机制

This commit is contained in:
fit2cloud-chenyw 2024-03-29 10:18:23 +08:00
parent 73716bc72b
commit 62668dfdd1

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);