diff --git a/example.config.yaml b/example.config.yaml index a6fcdd8..29cafcd 100644 --- a/example.config.yaml +++ b/example.config.yaml @@ -20,14 +20,14 @@ bot: # 如果你需要启用此邮箱,请将该邮箱下的 ‘enabled’ 字段修改为 'True' # 请至少启用一个邮箱,若三个邮箱均启用,则优先级为gmail > qq邮箱 > 自建邮箱 (按照此配置文件中的顺序) mail: - google: + google: #gmail enabled: 'False' smtp_server: 'smtp.gmail.com' email: 'xxxxxx@gmail.com' password: '1234567891234567' # 16 位应用码 - qq: - enabled: 'True' + qq: # qq邮箱 + enabled: 'False' # 请至少启用一个邮箱 smtp_server: 'smtp.qq.com' email: 'xxxxxxxx@qq.com' password: '1234567891234567' # qq邮箱应用码 diff --git a/src/clover_jm/jm_comic.py b/src/clover_jm/jm_comic.py index 3bda978..e7f926e 100644 --- a/src/clover_jm/jm_comic.py +++ b/src/clover_jm/jm_comic.py @@ -37,7 +37,7 @@ async def jm_email(album_id: str| None,receiver_email: str| None): send_status = await send_email_by_server(receiver_email,zip_path) else: logger.error("您未启用任何一个发信服务,请前往 config.yaml 修改。") - send_status = False + return "管理员未配置邮箱,发送失败了喵,大哥哥真是杂鱼♥️" if send_status: # 删除文件