mirror of
https://github.com/Kakune55/ComiPy.git
synced 2025-12-16 02:53:58 +08:00
优化内存消耗 添加·单线程模式
This commit is contained in:
@@ -9,7 +9,7 @@ api_Img_bp = Blueprint("api_Img_bp", __name__)
|
||||
def img(bookid, index): # 图片接口
|
||||
if request.cookies.get("islogin") is None:
|
||||
return abort(403)
|
||||
if db.file.searchByid(bookid) == "":
|
||||
if len(db.file.searchByid(bookid)) == 0:
|
||||
return abort(404)
|
||||
# 设置响应类型为图片
|
||||
data, filename = file.raedZip(bookid, index)
|
||||
|
||||
Reference in New Issue
Block a user