From b010e13de26c8d009aa154b7ad40fd1a893bfe44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E9=9B=84?= Date: Thu, 7 Sep 2023 08:26:48 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0tif=E8=A7=A3=E6=9E=90?= =?UTF-8?q?=E6=96=87=E4=BB=B6=20=E6=9B=B4=E5=8A=A0=E8=87=AA=E8=83=BD?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E6=8F=90=E9=86=92=20=E6=9B=B4=E6=96=B0tif?= =?UTF-8?q?=E8=A7=A3=E6=9E=90=E6=96=87=E4=BB=B6=20=E6=9B=B4=E5=8A=A0?= =?UTF-8?q?=E8=87=AA=E8=83=BD=E9=94=99=E8=AF=AF=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 高雄 --- server/src/main/resources/web/tiff.ftl | 46 +++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/server/src/main/resources/web/tiff.ftl b/server/src/main/resources/web/tiff.ftl index 58dc53ce..263f384f 100644 --- a/server/src/main/resources/web/tiff.ftl +++ b/server/src/main/resources/web/tiff.ftl @@ -43,7 +43,51 @@ imageData = ctx.createImageData(canvas.width, canvas.height); } catch(e){ console.log("错误:" + e); - alert("文件错误/或文件类型不正确,修改正确的文件类型比如后缀名为JPG!"); +var html = ""; +html += ""; +html += " "; +html += " "; +html += ""; +html += ""; +html += ""; +html += "
"; +html += " "; +html += " "; +html += " 该(tif)文件,系统解析错误,具体原因如下:"; +html += "

文件[${file.name}]解析失败,请联系系统管理员

"; +html += "
"; +html += "

有任何疑问,请加入kk开源社区知识星球咨询:https://t.zsxq.com/09ZHSXbsQ

"; +html += "
"; +html += ""; +html += ""; + document.write(html); + document.close(); } for (let i = 0; i < rgba.length; i++) { imageData.data[i] = rgba[i];