Merge pull request #8786 from dataease/pr@dev@fix_pblink_ticket_exp
fix: 公共链接ticket过期机制
This commit is contained in:
commit
d1422b14fb
@ -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