fix(接口文档): #1005960【github#5468】接口定义的文档分享链接需要用无痕浏览器打开,否则如果之前登陆过的话,会显示所有的接口文档

【【github#5468】接口定义的文档分享链接需要用无痕浏览器打开,否则如果之前登陆过的话,会显示所有的接口文档】https://www.tapd.cn/55049933/bugtrace/bugs/view?bug_id=1155049933001005960
This commit is contained in:
song-tianyang 2021-08-23 17:48:32 +08:00 committed by 刘瑞斌
parent 3aae60f32b
commit 8f93f2a9d7
3 changed files with 8 additions and 10 deletions

View File

@ -44,7 +44,11 @@ public class ShareInfoService {
if (request.getProjectId() == null) {
List<String> shareIdList = this.selectShareIdByShareInfoId(request.getShareId());
request.setApiIdList(shareIdList);
return extShareInfoMapper.findApiDocumentSimpleInfoByRequest(request);
if(shareIdList.isEmpty()){
return new ArrayList<>();
}else {
return extShareInfoMapper.findApiDocumentSimpleInfoByRequest(request);
}
} else {
return extShareInfoMapper.findApiDocumentSimpleInfoByRequest(request);
}

View File

@ -9,9 +9,9 @@ CREATE TABLE IF NOT EXISTS `test_plan_report` (
`creator` VARCHAR ( 50 ) DEFAULT NULL COMMENT 'report creator',
`start_time` BIGINT ( 13 ) DEFAULT NULL COMMENT 'report startTime',
`end_time` BIGINT ( 13 ) DEFAULT NULL COMMENT 'report timestamp',
`is_api_case_executing` TINYINT NOT NULL COMMENT 'is Api Case executing',
`is_scenario_executing` TINYINT NOT NULL COMMENT 'is scenario Case executing',
`is_performance_executing` TINYINT NOT NULL COMMENT 'is performance executing',
`is_api_case_executing` TINYINT(1) NOT NULL COMMENT 'is Api Case executing',
`is_scenario_executing` TINYINT(1) NOT NULL COMMENT 'is scenario Case executing',
`is_performance_executing` TINYINT(1) NOT NULL COMMENT 'is performance executing',
`principal` VARCHAR ( 50 ) DEFAULT NULL COMMENT 'principal',
PRIMARY KEY ( `id` ),
UNIQUE KEY `executeInfoID` ( `test_plan_id`, `create_time` )

View File

@ -443,12 +443,6 @@ export default {
formatRowData(dataType, data) {
var returnData = data;
if (data) {
// if(dataType === 'XML'){
// returnData = "<xmp>"+returnData+"</xmp>";
// }else {
//
// }
returnData = "<xmp>"+returnData+"</xmp>";
}
return returnData;