fix(UI自动化): 修复UI分享报告失效时间问题

--bug=1016813 --user=刘瑶 【UI测试】测试报告-超出有效时间仍可打开分享链接 https://www.tapd.cn/55049933/s/1244384
This commit is contained in:
nathan.liu 2022-09-18 17:24:09 +08:00 committed by nathanliu2022
parent 6e88707811
commit db2acf70d0
4 changed files with 12 additions and 3 deletions

View File

@ -657,6 +657,15 @@ public class ShareInfoService {
}
}
}
if (StringUtils.equals(shareInfo.getShareType(), "UI_REPORT")) {
type = ProjectApplicationType.UI_SHARE_REPORT_TIME.toString();
APIScenarioReportResult reportResult = extApiScenarioReportMapper.get(shareInfo.getCustomData());
if (reportResult != null) {
projectId = reportResult.getProjectId();
}
}
if (StringUtils.isBlank(type) || Strings.isBlank(projectId)) {
millisCheck(System.currentTimeMillis() - shareInfo.getUpdateTime(), 1000 * 60 * 60 * 24, shareInfo.getId());
} else {

@ -1 +1 @@
Subproject commit e1ec9296dc5a5b4f2603b12b9dcf70bab5d455fc
Subproject commit 2860b379a3a4d363df531b002bcd699c01c8a29f

@ -1 +1 @@
Subproject commit b96271fdbdff5e80b1cd78cf921ee9f934983dbd
Subproject commit 80cf85c741f08c6e448ed051dea30aa193e01988

View File

@ -21,7 +21,7 @@ export default {
this.shareId = getShareId();
getShareInfo(this.shareId, (data) => {
if (!data) {
this.$error('报告已删除!');
this.$error('链接已失效,请重新获取!');
return;
}
if (data.shareType === 'UI_REPORT') {