fix: 公共链接ticket过期机制
This commit is contained in:
parent
73716bc72b
commit
62668dfdd1
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user