提交 8a447c24 编写于 作者: F fit2-zhao

fix(测试跟踪): Xmind模版下载修改

上级 05f43a0f
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册