From e7560c422f1d02095d738bc8010bf0829059c3af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=A6=E5=87=8C=E6=B1=90?= Date: Thu, 5 Jun 2025 15:46:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90NSFW=E9=98=88=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/images.py b/routes/images.py index 59b2e56..35ee327 100644 --- a/routes/images.py +++ b/routes/images.py @@ -77,7 +77,7 @@ def upload_image(): nsfw_data = response.json() # 检查NSFW评分 - if nsfw_data.get('neutral', 0) + nsfw_data.get('drawing', 0) < 1 - float(AppConfig.NSFW_THRESHOLD): + if nsfw_data.get('neutral', 0) + nsfw_data.get('drawing', 0) < 1 - float(AppConfig.NSFWPY_THRESHOLD): return jsonify({'error': '图片内容未通过NSFW检查'}), 403 file.seek(0)