From 0d68d58e3f91f6a3470c4bc900d460e4c33c93f2 Mon Sep 17 00:00:00 2001 From: Kakune55 Date: Mon, 15 Apr 2024 16:59:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E6=98=BE=E5=BC=8FGC=E8=8A=82?= =?UTF-8?q?=E7=9C=81=E5=86=85=E5=AD=98=20+=20=E4=B8=BAbook=E9=A1=B5?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=93=8D=E5=BA=94=E5=BC=8F=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/book.html | 124 ++++++++++++++++++++++++++------------------ templates/view.html | 2 +- web/api_Img.py | 3 +- 3 files changed, 76 insertions(+), 53 deletions(-) diff --git a/templates/book.html b/templates/book.html index 7e259ad..32452fa 100644 --- a/templates/book.html +++ b/templates/book.html @@ -1,56 +1,76 @@ + - - - -详情页面 - + + + + 详情页面 + +
@@ -73,10 +93,12 @@

用户A:Lorem ipsum dolor sit amet consectetur adipisicing elit. Nobis, quam!

-

用户B:Lorem, ipsum dolor sit amet consectetur adipisicing elit. Aut sunt tempore architecto minus, cum mollitia voluptatibus repellendus aliquid id reprehenderit.

+

用户B:Lorem, ipsum dolor sit amet consectetur adipisicing elit. Aut sunt tempore architecto minus, cum + mollitia voluptatibus repellendus aliquid id reprehenderit.

- + + \ No newline at end of file diff --git a/templates/view.html b/templates/view.html index 95f007a..705bd92 100644 --- a/templates/view.html +++ b/templates/view.html @@ -1,5 +1,5 @@ - + diff --git a/web/api_Img.py b/web/api_Img.py index 27bc48d..fa4fe9f 100644 --- a/web/api_Img.py +++ b/web/api_Img.py @@ -1,6 +1,6 @@ from flask import * from flask import Blueprint -import db.file , file +import db.file , file, gc api_Img_bp = Blueprint("api_Img_bp", __name__) @@ -23,4 +23,5 @@ def img(bookid, index): # 图片接口 del data response.headers.set("Content-Type", "image/Webp") response.headers.set("Content-Disposition", "inline", filename=filename) + gc.collect() return response