fix(仪表板): 分享链接ticket的有效期没有随着刷新ticket重置

This commit is contained in:
fit2cloud-chenyw 2024-09-04 17:57:04 +08:00
parent 7be157f184
commit ae8f24baea

View File

@ -55,7 +55,8 @@ public class ShareTicketManage {
ticketEntity.setArgs(creator.getArgs());
ticketEntity.setExp(creator.getExp());
ticketEntity.setUuid(creator.getUuid());
coreShareTicketMapper.updateById(ticketEntity);
coreShareTicketMapper.deleteById(ticketEntity);
coreShareTicketMapper.insert(ticketEntity);
return ticketEntity.getTicket();
}
}