From 4d8566502d94a5a2bc80cc8a654d530ee2be06fd Mon Sep 17 00:00:00 2001 From: Wizerd Date: Sun, 24 Dec 2023 18:21:32 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E4=BC=98=E5=8C=96=E9=9D=9Emarkdown=20?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=9B=BE=E7=89=87=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index c43d4ed..5be2a9d 100644 --- a/main.py +++ b/main.py @@ -844,7 +844,10 @@ def data_fetcher(upstream_response, data_queue, stop_event, last_data_time, api_ if ((BOT_MODE_ENABLED == False) or (BOT_MODE_ENABLED == True and BOT_MODE_ENABLED_MARKDOWN_IMAGE_OUTPUT == True)): new_text = f"\n![image]({UPLOAD_BASE_URL}/{today_image_url})\n[下载链接]({UPLOAD_BASE_URL}/{today_image_url})\n" if BOT_MODE_ENABLED == True and BOT_MODE_ENABLED_PLAIN_IMAGE_URL_OUTPUT == True: - new_text = f"\n图片链接:{UPLOAD_BASE_URL}/{today_image_url}\n" + if all_new_text != "": + new_text = f"\n图片链接:{UPLOAD_BASE_URL}/{today_image_url}\n" + else: + new_text = f"图片链接:{UPLOAD_BASE_URL}/{today_image_url}\n" else: logger.error(f"下载图片失败: {image_download_response.text}") if last_content_type == "code":