mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-05 05:29:29 +08:00
fix(测试跟踪): Xmind模版下载修改
This commit is contained in:
parent
05f43a0f7f
commit
8a447c2494
@ -335,7 +335,11 @@ public class TestCaseService {
|
||||
// 读取filename
|
||||
String filePath = ClassLoader.getSystemResource("template/testcase.xmind").getPath();
|
||||
LogUtil.info("模版文件路径:"+filePath);
|
||||
try (BufferedInputStream bis = new BufferedInputStream(new FileInputStream(new File(filePath)));) {
|
||||
File file = new File(filePath);
|
||||
if(file == null || !file.exists()){
|
||||
LogUtil.info("模版模版下载失败:"+filePath);
|
||||
}
|
||||
try (BufferedInputStream bis = new BufferedInputStream(new FileInputStream(file));) {
|
||||
int i = bis.read(buff);
|
||||
while (i != -1) {
|
||||
outputStream.write(buff, 0, buff.length);
|
||||
|
Loading…
Reference in New Issue
Block a user