From fbca2dbdeadaf70e4bfd8483e7cc007bfaa6a555 Mon Sep 17 00:00:00 2001 From: Wizerd Date: Sun, 24 Dec 2023 17:56:31 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E4=BF=AE=E5=A4=8D=E6=9C=BA=E5=99=A8?= =?UTF-8?q?=E4=BA=BA=E6=A8=A1=E5=BC=8F=E4=B8=8B=E6=97=A0=E6=B3=95=E6=AD=A3?= =?UTF-8?q?=E5=B8=B8=E8=BE=93=E5=87=BA=E5=9B=BE=E7=89=87=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 8a03bbc..b138a72 100644 --- a/main.py +++ b/main.py @@ -171,9 +171,9 @@ CORS(app, resources={r"/images/*": {"origins": "*"}}) PANDORA_UPLOAD_URL = 'files.pandoranext.com' -VERSION = '0.3.0' +VERSION = '0.3.1' # VERSION = 'test' -UPDATE_INFO = '调整项目目录结构以适配更多的配置项' +UPDATE_INFO = '修复bot模式图片输出的bug' # UPDATE_INFO = '【仅供临时测试使用】 ' with app.app_context(): @@ -844,7 +844,7 @@ def data_fetcher(upstream_response, data_queue, stop_event, last_data_time, api_ logger.error(f"下载图片失败: {image_download_response.text}") if last_content_type == "code": if BOT_MODE_ENABLED and BOT_MODE_ENABLED_CODE_BLOCK_OUTPUT == False: - new_text = content.get("text", "") + new_text = new_text else: new_text = "\n```\n" + new_text