From f32e5ae861fb481eb2123c7a2bf51b193d7fc16f Mon Sep 17 00:00:00 2001 From: huangzhenpc Date: Wed, 26 Feb 2025 14:20:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/mail_store.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/services/mail_store.py b/app/services/mail_store.py index ed820b2..f8e79c2 100644 --- a/app/services/mail_store.py +++ b/app/services/mail_store.py @@ -37,9 +37,11 @@ class MailStore: if recipients is None: logging.warning("收件人列表为None,将使用空列表") recipients_list = [] + elif isinstance(recipients, list): + recipients_list = recipients # 如果是列表,直接使用 else: recipients_list = recipients.split(",") # 假设是以逗号分隔的字符串 - logging.debug(f"解析后的收件人列表: {recipients_list}") + logging.debug(f"解析后的收件人列表: {recipients_list}") try: # 解析邮件内容 email_subject = None