From 41879b2fbc15dff7022e1a62e612b2087b36cbbc Mon Sep 17 00:00:00 2001 From: STDquantum <405720329@qq.com> Date: Tue, 12 Dec 2023 10:32:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dimage=E7=BC=A9=E7=95=A5?= =?UTF-8?q?=E5=9B=BE=E8=8E=B7=E5=8F=96=E4=B8=8D=E4=BA=86=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=9B=E4=BF=AE=E5=A4=8D=E5=A4=A7=E7=BC=A9=E6=94=BE?= =?UTF-8?q?=E4=B8=8Bhtml=E5=85=83=E7=B4=A0=E8=B6=85=E5=87=BA=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/DataBase/output_pc.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/DataBase/output_pc.py b/app/DataBase/output_pc.py index 795dbbd..ed1db8c 100644 --- a/app/DataBase/output_pc.py +++ b/app/DataBase/output_pc.py @@ -201,6 +201,10 @@ class ChildThread(QThread): str_content = escape_js_and_html(str_content) image_path = hard_link_db.get_image(str_content, BytesExtra, thumb=False) image_thumb_path = hard_link_db.get_image(str_content, BytesExtra, thumb=True) + if not os.path.exists(os.path.join(MePC().wx_dir, image_path)): + image_path = None + if not os.path.exists(os.path.join(MePC().wx_dir, image_thumb_path)): + image_thumb_path = None if image_path is None and image_thumb_path is not None: image_path = image_thumb_path if image_path is None and image_thumb_path is None: @@ -608,7 +612,7 @@ body{ margin-top: 5%; } .container{ - height: 760px; + height: 99%; width: 900px; border-radius: 4px; border: 0.5px solid #e0e0e0;