fix(UI自动化): 修复UI分享报告失效时间问题
--bug=1016813 --user=刘瑶 【UI测试】测试报告-超出有效时间仍可打开分享链接 https://www.tapd.cn/55049933/s/1244384
This commit is contained in:
parent
6e88707811
commit
db2acf70d0
|
@ -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
|
|
@ -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') {
|
||||
|
|
Loading…
Reference in New Issue